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


Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,059
Latest member
cryptoseoagencies

Latest Threads

Top