Sign in | Join
Last post 05-15-2008 10:40 PM by Nai-Dong Jin - MSFT. 5 replies.
Sort Posts: Oldest to newest Newest to oldest
Hi,
I have a dropdownlist in a usercontrol.
i am dragging the usercontrol in an aspx page.
in javascript i want to check whether an item is selected in that dropdownlist. how to check whether an item has been selected or not using javascript in that aspx page??
I am dragging a user control in the aspx page. it will go like this:
<
<uc1:DropFinYearC ID="drpFinYearC" runat="server" />
where DropFinYearC is a user control . now how will i get the item value from the dropdownlist from this usercontrol in the aspx page where i have dragged the DropFinYearC usercontrol??
You may expose a property from the usercontrol for the dropdownlist
Then u can access it from the aspx page
hi,
how to expose a property of a usercontrol in a javascript ??
Just regard your user control as a server control. You may expose a property from your user control, and get the object instance of the user control in your javascript code.
How to use server control in javascript, see:
http://www.vbforums.com/showthread.php?t=332331
Thanks.