Click here to Skip to main content
15,914,820 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
The ControlToValidate property of 'RegularExpressionValidator2' cannot be blank.

ASP.NET
<asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="Invalid Zip Code" ValidationExpression="\d{5}(-\d{4})?" ControlToValidate="txtZip" ValidationGroup="r">
Posted
Updated 21-Sep-11 2:56am
v2
Comments
Muralikrishna8811 21-Sep-11 8:52am    
Hi nothing wrong in your code

check txtzip control is in your page or not
jim lahey 21-Sep-11 8:56am    
looks fine to me too
rkthiyagarajan 21-Sep-11 9:50am    
No problem your code but why you add ValidationGroup="r"? if you use group?

1 solution

Try rebuilding the solution and deleting temporary files
 
Share this answer
 

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