How do I call a class function in a QueryStringParameter?

Discussion in 'ASP .Net Web Controls' started by johncrobinson@gmail.com, Oct 17, 2006.

  1. Guest

    --in my aspx page--

    <asp:QueryStringParameter QueryStringField="EquipmentID"
    Name="EquipmentID" DefaultValue="<% CallMyFunctionHere() %>" />



    I have a QueryStringParameter getting the EquipmentID from a the query
    string when a user clicks on links containing "EquipmentID" as part of
    the GET data... however, when the page initially loads I want the
    default value of the QuertyStringParameter to come from a function in
    my class... one that returns the first EquipmentID in the database.
    This will keep me from having to hard code a value into the
    "DefaultValue". How do I call a class function from the
    QueryStringParameter from my aspx page?

    ~john
     
    , Oct 17, 2006
    #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. Lammert

    QueryStringParameter

    Lammert, Jan 23, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    3,802
    Christopher Reed
    Jan 25, 2006
  2. ~john
    Replies:
    0
    Views:
    562
    ~john
    Oct 18, 2006
  3. George2
    Replies:
    0
    Views:
    360
    George2
    Mar 17, 2008
  4. proffitt711
    Replies:
    0
    Views:
    1,082
    proffitt711
    Jul 13, 2009
  5. THAKUR PRASHANT SINGH

    Class Function call vs Normal Function call

    THAKUR PRASHANT SINGH, Feb 26, 2010, in forum: Ruby
    Replies:
    7
    Views:
    203
    THAKUR PRASHANT SINGH
    Feb 27, 2010
Loading...

Share This Page