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

Explain the difference between asp & asp.net.

0 Answers  


Explain the life cycle of an ASP .NET page.

2 Answers  


What is postback pixel?

0 Answers  


How would ASP and ASP.NET applications run at the same time on the same server?

0 Answers   Satyam,


What is considered a service provider?

0 Answers  


What's the use of formatters in .net?

0 Answers  


what is managed and unmanaged code?

4 Answers   Microsoft,


Why do we use Option Explicit?

2 Answers   Microsoft,


What is viewstategenerator?

0 Answers  


Explain significance of routing? : asp.net mvc

0 Answers  


i have one gridview contains edititemtemplate(which contains update and cancel buttons) and i have one item template (contains edit button) i want the code for update and cancelbuttons in edit item template and i want the code for edit button in itemtemplate. please help me

4 Answers  


Define the steps to set up validation control.

0 Answers  


Categories