Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
SenthilkumarRank #387 · 6.5K reputationPosted Apr 1, 2012, 10:06 PM EDT
selvi subramanianRank #2,007 · 723 reputationPosted Apr 1, 2012, 10:21 PM EDT
selvi subramanianRank #2,007 · 723 reputationPosted Apr 1, 2012, 10:29 PM EDT
SenthilkumarRank #387 · 6.5K reputationPosted Apr 1, 2012, 11:42 PM EDT
If it is selected other than default value then it will not throw error other wise it will show the error.
You can see the server side validation also:
http://www.ezineasp.net/post/ASP-Net-DropDownList-Validation-using-JavaScript.aspx
selvi subramanianRank #2,007 · 723 reputationPosted Apr 2, 2012, 12:00 AM EDT
SenthilkumarRank #387 · 6.5K reputationPosted Apr 2, 2012, 12:31 AM EDT
Correct. I have used the script tag. The reason for that you may place the drop down list in panel or some other parent control then sometimes it will be ctl100_panel_ddlParameter.
When you say <%= ddlParameter.ClientID%>, it will get the generated the client id which displays one in browser.
selvi subramanianRank #2,007 · 723 reputationPosted Apr 2, 2012, 2:31 AM EDT