http://www.aspforums.net/Threads/121102/jQuery-Validation-Engine-Confirm-Password-Validation-not-working-when-using-Master-Page-in-ASPNet/
Since you are using Master and Content Pages the ID of the TextBox changes and hence the following won't work as it is not able to find the TextBox.
Thus the only way to solve this issue is setting the CssClass from code behind so that we can pass the ClientID of the other TextBox
txtConfmPasswd.CssClass = "validate[required,equals[" + txtPasswd.ClientID + "]]";
Any one guide me what i do ? any example code ? where i place that ?
Call the line of code in page load of content page.
protected void Page_Load(object sender, EventArgs e) { txtConfirmPassword.CssClass = "validate[required,equals[" + txtPassword.ClientID + "]]"; }
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.