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

What is a web pool?

812


Define globalization and localization.

768


Can the validation occurs in server-side or client-side? If the validation occurs why should we do?

840


What are the different web pages?

690


How to prepare culture-specific formatting in .net.

785


explain code with datachaching with example

1915


How can we identify that the Page is Post Back?

761


What I need to create and run an asp.net application?

738


Explain a program using code nuggets to create a simple application? : asp.net mvc

778


What is the use of web.config and machine.config files?

882


What is server side session management?

738


If 200 is for all successful operation then why do we have 201 response codes?

743


What is master page in dtp?

764


What is a windows service?

800


How is it possible for .NET to support many languages?

518