However, you can overcome this scenario using the JavaScript class library provided by the Microsoft. Just include the code-segment before the closing tag. Thats all.
<script type="text/javascript">
// ValidatorHookupControlID function is contained within
// Microsoft's Validation Script
ValidatorHookupControlID("<%= TextBox1.ClientID %>", document.getElementById("<%= CustomValidator1.ClientID%><%= CustomValidator1.ClientID%>"));
ValidatorHookupControlID("<%= TextBox2.ClientID %>", document.getElementById("<%= CustomValidator1.ClientID%><%= CustomValidator1.ClientID%>"));
</script>
No comments:
Post a Comment