Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > How do I call a class function in a QueryStringParameter?

Thread Tools

How do I call a class function in a QueryStringParameter?
Posts: n/a
--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?


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Class Function call vs Normal Function call THAKUR PRASHANT SINGH Ruby 7 02-27-2010 07:04 AM
call base class function or derived class function George2 C++ 0 03-17-2008 02:03 AM
parse error in gcc but success in, call a non_template class's template member function from a template class's member function! ken C++ 2 06-28-2005 06:57 AM
write a function such that when ever i call this function in some other function .it should give me tha data type and value of calling function parameter komal C++ 6 01-25-2005 11:13 AM