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.
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.