Accessing asp:DropDownList.SelectedItem.Text from Client Side
Posted on 2004-10-11
I am using ASP.NET to create a page with a dropdownlist box that is used to capture the name of a table (or view) from the user.
Given this info, I want to go to a particular web page to display records for this table.
When I try to retrieve the text that indicates the appropriate table/view entered into a asp:DropDownList control I get an "Object required" error.
I realize that I am trying to access a server control from the client and there are problems associated with to do this. This site has suggested that:
might work from the client-side. But, this approach comes back and says "Error: Syntax".
Is there anyway to do this? I have a server-side menu control that has triggered client-side code. I know what I want to do, but don't know the table to do it to.