Unable to Call inline function from web user control?

Discussion in 'ASP .Net Web Controls' started by Richard Adams, Aug 7, 2003.

  1. 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>
    ....
     
    Richard Adams, Aug 7, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. ABC
    Replies:
    1
    Views:
    2,666
    Larry
    Oct 4, 2005
  2. Nish
    Replies:
    4
    Views:
    524
    Thomas Stegen
    Oct 8, 2004
  3. TGOS
    Replies:
    3
    Views:
    395
    Kevin Bracey
    Feb 28, 2005
  4. Ajay
    Replies:
    5
    Views:
    412
    Pete Becker
    Apr 1, 2006
  5. Replies:
    7
    Views:
    456
Loading...

Share This Page