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.

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

In which event of the page life cycle, is the viewstate available?

705


Give 2 examples for scenarios when routing is not applied?

799


What is asp short for?

751


How do u optimize a query in asp.net?

769


How can you handle unmanaged code exceptions in asp.net?

773


Which property needs to be set for script manager control to extend the time before throwing time out expection if no response is received from the server?

742


What is master page in dtp?

746


Which data type does the rangevalidator control support?

727


a)COM Callable Wrapper b)Runtime Callable Which one of the above is Win32 API in .Net?

1804


How to disable validator control by client side JavaScript?

765


What is applicatio domain?

755


What is application state?

694


What do you mean by authentication?

772


Difference between Response.redirect vs server.transfer?

871


What are the disadvantages of using session?

710