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
List of words of preprocessor in .net?
What does occur first in ASP.Net, Authentication or Authorization?
I have created a configuration setting in my web.config and have kept it at the root level. How do I prevent it from being overridden by another web.config that appears lower in the hierarchy?
What is the advantage of using Windows authentication in a Web application?
What is the syntax for datagrid and specifying columns?
What are the merits and demerits of viewstate?
What is Partial PostBack in ASP.NET?
Describe a Windows Service and its lifecycle ?
What is considered a service provider?
IN an ASP.NET Web application if there is any error, how can you debug?
What is the use of view state?
What is the current version of asp.net?
Does google crawl redirects?
What is difference between viewstate and session state in javascript?
List all templates of the repeater control.