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

RequiredFieldValidator--write code in javascript

3 Answers   Wipro,


Explain how does asp page work?

1 Answers  


Which method do you use to enforce garbage collection in .net?

1 Answers  


can we transfer data from one page to another page using viewstate if so how?if not y?

1 Answers   Patni,


what is use of doctype tag in asp.net

1 Answers   TCS, Wipro,


For which does this Codebehind="MyCode.aspx.cs" is relevent to ?

1 Answers   Siebel,


What are the different types of proxy patterns?

1 Answers  


What are the versions of garbage collection?

1 Answers   Proteans,


Describe the difference between inline and code behind.

5 Answers   Siebel Systems,


hi i have a problem regarding to datagrid in aspdotnet.i have a datagrid in my application.i have to place add,edit,delete buttons or links what ever it may be. now the problem is if i click on add button then the page has to redirected to another form called "xyz.aspx" and if i click on edit button the page has to redirected to another form called "abc.aspx".i am phasing the problem that if where ever i click on the datagrid the cursor goes to gv1_SelectedIndexChanged event.please tell me the solution about the code.

4 Answers   Lambent,


What is a Managed Data?

4 Answers   HCL,


if i want to give an alert message like "try after sometime" to a web page which is being seen by other person.if a web page is not seen by anyone then it should display otherwise it show a display a message stating that other person is viewing so try after some time........how can i implement this.

1 Answers   Siemens,


Categories