Drop Down List Property Ques
Hello
I am using Javascript to dynamically populate the second drop down list. But after the second drop down list gets selected and the Search button is pressed, ASPX handles the Search request.
The problem is, when I populate the DDL I use :
Form1.ddl.options(Counter).text = xmldoc.getElementsByTagName('Name').item(Counter). firstChild.data;
Form1.ddl.options(Counter).value = xmldoc.getElementsByTagName('ID').item(Counter).fi rstChild.data;
But in ASPX (Code Behind), ddl property ddl.option.text and
ddl.option.text doesn't exist. ddl.DataTextField and ddl.DataValueField are available in the Code Behind.
So how can I get the text and value loaded by Javascript into the DDL from Code Behind where only DataTextField and DataValueField are available?
|