Posted on: 6/11/2014 8:16:15 PM | Views : 393

Hi
I am looking to add custom validation on dropdown in a webpage. I can't make a client validation works . Here is my code. it  is not receiving any value in JS function
<script type ="text/javascript" > <!-- function CheckSubject(sender, args) { var isubject = parseInt(args.Value); If(isubject == "<--Please Select-->") { args.IsValid = false; } args.IsValid = true; } // --> </script> <asp:DropDownList ID="dpSubject" runat="server" Width="355px" CssClass="dropdownstyle"> </asp:DropDownList> <asp:CustomValidator ID="CustomValidator2" runat="server" ...

Go to the complete details ...