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

What is caching in asp.net?

0 Answers  


what is the use of untyped data set ?

5 Answers   TCS, Wipro,


How to change the form layout in ASp.net 2.0 ?

1 Answers   Netsweeper,


What is asp.net response object?

0 Answers  


What are ASHX files?

0 Answers   HCL,






Can user control be stored in library?

0 Answers  


suppose i am Admin in my application and i have to terminate the session of the particular user in my application.........how can i do it....?????

1 Answers   L&T,


what is the relation between delegates and events

4 Answers   IBM, iNautix,


What definition correctly defines a label server control with the name set to lblHoop? a) <asp:Label name=?lblHoop? runat=?server? /> b) <Label id=?lblHoop? runat=?server? /> c) <asp:Label id=?lblHoop? runat=?server? /> d) <server label name=?lblHoop? runat=?asp? />

3 Answers   Syntax Softtech,


A brief difference between Session and Cookies in asp.net

5 Answers   HCL, HCL Comnet,


Difference between .NET components and COM components?

2 Answers   Microsoft,


Do I need to have the latest version of windows media player installed?

0 Answers  


Categories