Requesting a form element from a User Control

S

Stimp

For various reasons (to do with javascript) I need to retrieve the value
of a specific dropdownlist using the request.form method as opposed to
the 'SelectedValue' method.

i.e. Request.Form(ddMake.UniqueID)

this is fine on its own.. but if I have the dropdownlist in a user
control ascx file, how can I access the dropdownlist using the above
string?

(assume the id of my control= "ctlSearch")

I've tried Request.Form(ctlSearch:ddMake.UniqueID) but this syntax isn't
allowed.

any ideas on the correct syntax here, or even if it's possible through a
user control?

Thanks,
Peter
 
B

Bruce Barker

in the Request.Forms collection, you use the ClientID, as thats the name the
browser knows.

-- bruce (sqlwork.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

Top