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?
 
 
Thanks
 
Andy Mills
Programmer
Regency Thermographers
717-765-3572
 <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
http://www.regencythermo.com <http://www.regencythermo.com/> 
 
 
 


[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/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/
 



Reply via email to