If an asp.net DropDownList’s is set to EnableViewState=false, DropDownList.SelectedItem returns null.
Then what technique can I use to get the SelectedItem of that DropDownList while keeping that EnableViewState=false?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
UniqueID returns “ctl00$ContentMain$ddlCountry” where as
ClientID returns “ctl00_ContentMain_ddlCountry”
The UniqueID is inserted to the name of the HTML form which is used in the postback form name.