How does the regular expression validator work? What are two
situations when you might want to use one?

Answers were Sorted based on User's Feedback



How does the regular expression validator work? What are two situations when you might want to use ..

Answer / saranya

it is used to validate the standard format like date and
email

Is This Answer Correct ?    3 Yes 0 No

How does the regular expression validator work? What are two situations when you might want to use ..

Answer / 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

More ASP.NET Interview Questions

What are the options in ASP.NET to maintain state?

0 Answers   CDC,


About Global .asax ?

6 Answers   Satyam,


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

0 Answers  


What is CTS, CLS and CLR ?

20 Answers   CGI, Palm Technology, Reliable Technology, Satyam, Synergy, TCS,


What is the purpose of the validation summary control? What do you need to do to prevent an error message from being displayed in a validator when a validation summary control is used? How can you display a message in both the validator and the validation summary control?

2 Answers  






What does this do? sn -t foo.dll

3 Answers  


What is DataGrid wheater its a Server Control or something else ?

0 Answers   NA,


Why is catch(Exception) almost always a bad idea?

4 Answers  


What is the syntax for datagrid and specifying columns?

0 Answers   Microsoft, SF,


What is the difference between mvc (model-view-controller) and mvp (model-view-presenter)? : asp.net mvc

0 Answers  


when u enter the data in one text box once u completed entering the text box data then one page has to be popuped and the text has to be displayed in the parent page

1 Answers  


How is the asp.net mvc architecture different from others? : asp.net mvc

0 Answers  


Categories