Required field validator trigger single button in one page in asp.net
Solved:
Mostly user face the issue when use required field validator. Two asp.net button problem trigger one button for validate and another button for another performing but disturbed both button to show error,
this problem has been solved to "ValidationGroup" just defined button and which controls to validate.
Example:
<asp:RequiredFieldValidator ValidationGroup='grp1' ... />
<asp:Button ValidationGroup='grp1' Text='trigger for validation' ... />
Mostly user face the issue when use required field validator. Two asp.net button problem trigger one button for validate and another button for another performing but disturbed both button to show error,
this problem has been solved to "ValidationGroup" just defined button and which controls to validate.
Example:
<asp:RequiredFieldValidator ValidationGroup='grp1' ... />
<asp:Button ValidationGroup='grp1' Text='trigger for validation' ... />
Comments
Post a Comment