User contro having 4 text boxes given validation controls.
i want to execute validations after the button click event
how it is?

Answer Posted / atish r . jaiswal

If we want the validation to be done after the click event
of the button
we can set the disply property of the validator to dynamic
vaidaton will occur so when user click on button
and not on when user left the field invalid

but as answr above
cause validation property is used to avoid the validation
to occur on some respective buttons

if we want to validate only few controls on page
then we use the valiationgroupproperty to set it with same
name to all controls in group and of the validator

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When Cookies are expired in ASP.NET?

801


What is a web api?

797


What is jade template engine?

813


How to make sure that contents of an updatepanel update only when a partial postback takes place (and not on a full postback)?

742


What is the difference between Session and response.Redirect?

895


Explain difference between friend and protected friend?

742


Explain in what order a destructors is called.

818


Am not able to move the controls on the form freely in asp.net 3.5 even though I selected the position as relative or absolute for those controls. What should I do to overcome this?

2174


How to send a DataReader as a parameter to a remote client ?

3000


What are sql notifications and sql invalidations?

736


Which dll handles the request of .aspx page?

770


What is user control in asp.net?

754


What is difference between web api and web services?

765


What is web api vs wcf?

801


What is meant by web application?

748