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
What is considered a service provider?
Explain ViewState?
Explain how cookies work.
How to store checkbox value in database in asp.net mvc? : Asp.Net MVC
What is custom attribute?
Suppose you want an asp.net function (client side) executed on the mouseover event of a button. Where do you add an event handler?
What is a ashx file?
What is custom events?
Describe session handling in a webfarm, how does it work and what are the limits?
What is asp.net caching?
Why is an object pool required?
Explain about the Class view window?
Describe state management in asp.net?
Why we use dbms for projects? Why don’t we save any application data in separate files instead of dbms?
Why do we need url encoding?