How does the regular expression validator work? What are two
situations when you might want to use one?
Answer Posted / pallavi
E-mail: <asp:textbox id="textbox1" runat="server"/>
<asp:RegularExpressionValidator id="valRegEx" runat="server"
ControlToValidate="textbox1"
ValidationExpression=".*@.*"
ErrorMessage="* Your entry is not a valid e-mail address."
display="dynamic">*
</asp:RegularExpressionValidator>
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Can you explain one critical mapping? Performance issue which one is better?
What is aspect-oriented programming?
What is x xss protection?
How many web config files can be created for an application?
What is server side session?
What is a pixel url?
What is cross page posting? How is it done?
What is the best Macanism to clear the Cache in asp.net
What is ashx file in asp.net?
Can you change a master page dynamically at runtime? How?
What are the differnt types of handler in ASP.NET?
How to communicate via Remote proxy with Client? a)MarshalByRef b)Marshal by Value or Any thing else?
What is authentication in asp.net?
What is difference between session and cookie?
How can we add an event handler for a ASP.NET function executed on MouseOver for a certain button.