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


Please Help Members By Posting Answers For Below Questions

Explain the difference between response.redirect vs server.transfer

616


What is difference in .net 1.1 and .net 2.0?

577


Fetch one page value to another page without using state-managment ?

524


What is the full meaning of asp.net?

521


How do you secure your connection string information?

510






Give some salient points of difference between request processor and request dispatcher.

608


What is the difference between mechine.config and web.config?

726


i have 3+ exp in .net? i am going interview now but they asked me do you know any TOOL? which tool will i study please refer me?

1832


What is applicatio domain?

569


What is a session in programming?

554


What is datagrid asp.net?

489


How Session use Cookies in State Management?

601


What is the difference between client-side and server-side validations in ASP.NET?

654


Hi All, Im an MCA holder with 3+ years of experience in asp.net. Now i want to move to some good government job. I have no idea about different categories of exams held & which one can be applicable for my education background. I have done B.A with MCA. Please help me out with your valuable suggestions. I would be very grateful. Thanks Anuj

2833


What is asp.net and ado net?

514