dropdownlist problem

C

CreativeMind

I updated my application from VS2003(.NET framework 1.1) to
VS2008(.NET framework 3.5).
My form uses a dropdownlist cboLocation. In 1.1 there is no error
accessing that form. but when i use 3.5, i get error of 'object
required'. when i break and quick-watch the value of
document.getElementById("cboLocation") , it shows 'null'. btw, there
is a value in dropdownlist. what should i change?? actually, when i do
quickwatch of document then document.forms[0][6][3].id is showing me
'null'. where 0 is form's index, 6 is cbolocation index and 3 is the
selected value of dropdownlist. while document.forms[0][6]
[3].innerText is showing me right value 'abc'. Id is not matching.how
should i find Id or any other ways to find value or id?? btw,
generated source code shows me dropdown'id as '
_ctl0_ContentPlaceHolder2_cboLocation.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

document.forms[0][6][3].id 0
null value 0
'object required' ? 2
Problem with codewars. 5
dropdownlist selected Index remains zero. 1
Travel time math problem 13
Bootstrap contact form not working 2
DropDownList 0

Members online

Forum statistics

Threads
474,431
Messages
2,571,678
Members
48,796
Latest member
Greg L.

Latest Threads

Top