Click to See Complete Forum and Search --> : retrieve data from combo box


reeta82
September 2nd, 2003, 09:24 PM
how to retrieve a data that has been selected from com box..using asp..plz help..

ZoSoo7
September 3rd, 2003, 09:36 AM
Client Side (with in a <script> tag)
document.getElementbyId("controlId").value

Server Side using ASP (form must be posted)
request.form("controlName")

Vanny
September 9th, 2003, 02:53 AM
For client side you may need to use the below to get to work in older version of Netscape, as I have had problems with the getElementbyId in the past.

document.form_name.element_name.options[document.form_name.element_name.selectedIndex].value