There is a login page that has two text boxes with required
field validators on it. The page has a login and cancel
button. How can we ensure that the click on the cancel
button doesnt fire a validation event.

Answers were Sorted based on User's Feedback



There is a login page that has two text boxes with required field validators on it. The page has a..

Answer / madhabendra nath

just write CauseValidation="false" in cancel button property.

Is This Answer Correct ?    48 Yes 1 No

There is a login page that has two text boxes with required field validators on it. The page has a..

Answer / guneetinder singh

By using the validation Group property.

name validation group property of both required field
validator and on login button but not of cancel button.

Is This Answer Correct ?    6 Yes 7 No

Post New Answer

More ASP.NET Interview Questions

why we are using delegates and in which condition it is required?

3 Answers   TCS,


What is side-by-side execution? Can two applications, one using a private assembly and other using a shared assembly, be stated as side-by-side executables?

0 Answers  


In a page I have gridview with options of select and delete using hyperlink when I am selecting any one of then it has to open another page how can it?

0 Answers  


Define tracing.

0 Answers  


Describe briefly what is the role of IIS on an ASP.NET application? What does it for the same application?

0 Answers   InfoAxon Technologies,


Explain one critical mapping?

0 Answers  


.Net Doesn't offer Deterministic Distruction ? a) True b) False

4 Answers   CTS,


Which is the namespace used to write error message in event Log File?

1 Answers  


Can we change the session timeout in ASP.NET, if yes then how and from where?

7 Answers   L&T,


What is the default timeout for a cookie?

0 Answers  


What are the main advantages of using asp.net?

0 Answers  


What is x xss protection?

0 Answers  


Categories