Get SelectedValue of DropDownList in User Control in WebForm

G

gu4y

Hello All,

How can I get the SelectedValue of a User Control's DropDownList in the
code-behind of the WebForm hosting the User Control?

(Without having to use Request.Form["UserControlName:DropDownListName"])

Thanks
 
G

gu4y

Thanks Chris,

I exposed a public property and it works great.



Chris Jackson said:
Expose a public function on your user control that will return this value.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

gu4y said:
Hello All,

How can I get the SelectedValue of a User Control's DropDownList in the
code-behind of the WebForm hosting the User Control?

(Without having to use Request.Form["UserControlName:DropDownListName"])

Thanks
 

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