Web User Control Parameter

R

Rena

Hi all,
is it possible to pass parameter inside a web user control from ASPX pages,
and how could i do to retrieve this value inside the web user control?

Thanks a lot.
Rena.
 
J

Jeffrey Palermo [MCP]

Rena,
First of all, you user control has access to the querystring
information, so you could pass a parameter that way. Another way is to make
a public property in your code-behind class. Then in your page, you declare
a member variable for your user control and set the public property to the
value that you need to "pass in".

Best regards,
Jeffrey Palermo
 
R

Rena

Hi Jeffrey,
Could you told briefly about how to use querystring information for
passing parameter?

Thanks a lot.
Rena,
 

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
474,139
Messages
2,570,805
Members
47,352
Latest member
DianeKulik

Latest Threads

Top