Hello Guys: I didn't think this was possible to do: but on a whim: I tried it and it worked: <%=listboxListDetails.SelectedItem.Value%> Thanks Andy
_____ Hello All: I am having a Dickens of a time getting this to work. I have an ASP.Net page that I need to use JavaScript to gather the value of a selectedItem from a dropdownlist box. All controls on this form (except the <a href=""> that opens the new window) are server controls. How can I use JavaScript to read the values of the selectedItem from a Dropdownlist box? I should also say that this is in a UserControl (if that matters). I have tried document.Form1.listboxListDetails.options[document.Form1.listboxListDetails. selectedIndex].value and this fails, saying that document.Form1.listBoxListDetails.options is null or not an object. Here is the declaration of my listbox: <asp:listbox id="listboxListDetails" runat="server" AutoPostBack="True" Width="256px" Height="278px">, so I know it exists on the page. I can view the source and see it. When I view the source of the page: I can see that the form name is <form name="Form1" method="post" id="Form1"> Can anyone notice what I am missing here? [Non-text portions of this message have been removed] ------------------------ Yahoo! Groups Sponsor --------------------~--> Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/17folB/TM --------------------------------------------------------------------~-> --------------------------------------------------------------------- Home : http://groups.yahoo.com/group/active-server-pages --------------------------------------------------------------------- Post : [email protected] Subscribe : [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] --------------------------------------------------------------------- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/active-server-pages/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
