How do I call a class function in a QueryStringParameter?

J

johncrobinson

--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
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top