User contro having 4 text boxes given validation controls.
i want to execute validations after the button click event
how it is?
Answers were Sorted based on User's Feedback
Answer / satish
In 4 Text boxes properties, make the cause validation
property false. And in button click event make the all text
box cause validation property true.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / 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 |
Answer / guest
Write the code for validations in the button control.
| Is This Answer Correct ? | 0 Yes | 0 No |
what is Theme in Asp.net 2.0
what are the events raised in asp.net page life cycle?in which stage view state can be loaded?
what is session . how it is use ?
What is a PostBack? What is ViewState? How is it encoded? Is it encrypted? Who uses ViewState? Why is it either useful or evil?
How does dataset acts in a disconnected fashion ?
How to disable cut, copy and paste in TextBox using jQuery in asp.net?
Difference between DataView and DataTable
How we handle the runtime database schema change issue in asp.net application?
which is best possible way to add data source to data grid when the data is huge(10 lack recored)how to edit a perticular row
What is a response cookie?
How to turn off cookies for a page?
What are the new features added from ASP to ASP.NET?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)