User control Problem

G

GMK

Dear all
i'm facing a problem with the user controls
i would like to ask if anybody could help me in knowing how to handle the
values of a user control from outside the control.
e.g.
i have a drop down list, this drop down list is a user control and it is
filled according to a qurey built in the user control.
i want to use this drop down list on different page of my application with
the same values and data, but on each time i have several buttons that would
use the values selected in the drop down list in a different way.
i want to know how could i get the value of this control and if i can't can
i create a class with an interface (HTML) that could do for me this job?

Thank you all for your help.
 
M

MasterGaurav

One instance is available in only one page. This holds true for ASP.Net
1.1

If you are ready to jump to ASP.Net 2.0, you can use submissions
across-pages. See PreviousPage property of Page class in ASP.Net 2.0

Or you can serialize the values to a database and keep a reference-ID
(primary key / identity) as URL-query-string parameter for the
subsequent page.

Prefer migrating to ASP.Net 2.0

HTH

--
Cheers,
Gaurav Vaish
http://www.mastergaurav.org
http://mastergaurav.blogspot.com
--------------------------------
 

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