Get SelectedValue of DropDownList in User Control in WebForm

  • Thread starter Thread starter gu4y
  • Start date Start date
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
 
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
 
Back
Top