Hello
I am populating the some controls at server side and others with Javascript because I am using AJAX.
The two Drop Down List gets populate by Javascript but when the user clicks "Search" button, then the server needs to get the selected values of the two drop down list to be processed at server side. The problem is that Javascript uses Form1.ddlName.options.text and Form1.ddlName.options.value. But server looks for
ddlName.selectedtext and ddlName.selectedindex. I can't get the value that the user has selected because it was populated by Javascript.
How can I pass the selected value to server? Someone recommended to store the value to a hidden field. I was able to set the hidden field value but I can't pick up the value on the server side.
Please Help!!!!
Thank you.
I am populating the some controls at server side and others with Javascript because I am using AJAX.
The two Drop Down List gets populate by Javascript but when the user clicks "Search" button, then the server needs to get the selected values of the two drop down list to be processed at server side. The problem is that Javascript uses Form1.ddlName.options.text and Form1.ddlName.options.value. But server looks for
ddlName.selectedtext and ddlName.selectedindex. I can't get the value that the user has selected because it was populated by Javascript.
How can I pass the selected value to server? Someone recommended to store the value to a hidden field. I was able to set the hidden field value but I can't pick up the value on the server side.
Please Help!!!!
Thank you.