Thank you people for your comments.
The issue was that the variables inside the dropdown were local variables in the JS. i.e. runs only in the client side. Hence I was unable to retrieve the values. I have to go with bringing the values into a hidden variable rather than retriving from drop downs.
User Profile
Collapse
-
unable to retreive the values from drop down
I'm not able to retrieve the values from a drop down in .cs file using ddl.selectedVal ue while I'm able to retrieve in Javascript using a hidden variable.
The problem in detail:
Neither This
string dateTemp = Convert.ToStrin g(ddlYear.Selec tedIndex) + "-" + Convert.ToStrin g(ddlMonth.Sele ctedIndex) + "-" + Convert.ToStrin g(ddlDay.Select edIndex);
nor This
string dateTemp = Convert.ToStrin g(ddlYear.Selec tedValue)...
No activity results to display
Show More
Leave a comment: