Click here to Skip to main content
15,880,972 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
in my web page all requirefield validator in one panel
and this panel will occupy some place but it is not working, if i visible that panel requirefield validator are not working.

Please help me, thanks in advance
Posted
Updated 16-Mar-15 20:16pm
v3

1 solution

Hello,

Use the ASP.NET ValidationGroup Property

Example:

C#
<asp:textbox id="tb1" runat=Server />
<asp:requiredfieldvalidator id="ReqField1" controltovalidate="tb1"
validationgroup="valGroup1" errormessage="Required" runat=Server />

<asp:ImageButton id="Button2" causesvalidation=true
validationgroup="valGroup2" ImageUrl="img.gif" runat=Server />


Hope it will Help You.
Thanks,
Pankil
 
Share this answer
 
Comments
Parazival 17-Mar-15 2:25am    
thankx but idon't wanna show like(required) that

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900