I use this script for validation using javascript in asp.net but its not working plz help
i use this script for validation using javascript in asp.net but its not working plz help
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
selvi subramanianPosted Apr 2, 2012, 6:31 AM
SenthilkumarPosted Apr 2, 2012, 4:31 AM
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 subramanianPosted Apr 2, 2012, 4:00 AM
SenthilkumarPosted Apr 2, 2012, 3:42 AM
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 subramanianPosted Apr 2, 2012, 2:29 AM
selvi subramanianPosted Apr 2, 2012, 2:21 AM
SenthilkumarPosted Apr 2, 2012, 2:06 AM