Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Unable to Call inline function from web user control?

Thread Tools

Unable to Call inline function from web user control?

Richard Adams
Posts: n/a
I'm not getting a call to the inline function in the code-behind to
determine which images to populate a table with. On compile if the
function name doesn't match it tells me. On execution I get nothing,
the call doesn't even appear to take place, as a
response.write("AAARGH!!!") as the first line in the function produces
nothing. Am I missing something?

Function looks like this, in the codebehind for the web user control:

Public Function drawInSr(ByRef cmd As String) As String
Select Case cmd
Case "l"
drawInSr = "images/lefton.gif"
Case "m"
drawInSr = "images/midon.gif"
Case Else
drawInSr = cmd
End Select
Return drawInSr
End Function

HTML looks like this:

<td vAlign="bottom" width="12" height="19">
<IMG height="19" alt="" src="<%# drawInSr("l") %>" width="12"
<td vAlign="bottom" align="center" width="100" background="<%#
drawInSr("m") %>" height="19">
<a href="SDDSInsuredLookup.aspx?Tab=InsSrch">Insured Search</a></td>
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to know the inline-function was implemented the inline way or normal way? C++ 7 07-18-2006 11:22 PM
forcing compiler to consider inline function inline. Ajay C++ 5 04-01-2006 02:03 PM
Use of inline function in inline function - is it allowed? TGOS C Programming 3 02-28-2005 10:49 AM
write a function such that when ever i call this function in some other function .it should give me tha data type and value of calling function parameter komal C++ 6 01-25-2005 11:13 AM
Function delcared inline but not defined inline Nish C Programming 4 10-08-2004 03:31 PM