Results 1 to 2 of 2

Thread: Inline Function Call Not working

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2005
    Posts
    27

    Inline Function Call Not working

    Can someone tell me what is wrong here? The MultipleSystems function doesn't seem to be getting called. Am I doing this right?

    Thanks!

    Code:
    <asp:Label id="lblName" runat="server" text = '<%# MultipleSystems("123-12-1234", "321-21-4321") %>'></asp:Label></TD>
    VB Code:
    1. Public Function MultipleSystems(ByVal mainsystempn As String, ByVal addsystempn As String) As String
    2.         If chkOtherOptions1.Checked = True Then
    3.             Return mainsystempn + "/" + addsystempn
    4.         Else
    5.             Return mainsystempn
    6.         End If
    7.     End Function

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Inline Function Call Not working

    Maybe that should be <% =MultipleSystem.... %> instead?

    Why not just assign lblName.Text = MultipleSystem(...) in your code?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width