Unable to Call inline function from web user control?

R

Richard Adams

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"
border="0"></td>
<td vAlign="bottom" align="center" width="100" background="<%#
drawInSr("m") %>" height="19">
<a href="SDDSInsuredLookup.aspx?Tab=InsSrch">Insured Search</a></td>
....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top