.NETGURU
Asp Validators
Messages   Related Types
This message was discovered on ASPFriends.com 'aspng-validators' list.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.

Neel Kaur
Hi

In my web page i have a textbox which uses required field validate .... i want the validaor to occur only when I fire a click event of another link button called add

but it also fires when i want to go to the next page( which is another link button next) which I do not want . Can anyone suggest me how I am going to do

thanks in advance
Neel
Reply to this message...
 
    
Brian Bilbro (VIP)
On the LinkButton that you don't want to cause validation just set the =
CausesValidation attribute of it to false. E.G.

<ASP:LinkButton
id=3D"foobar"
runat=3D"server"
CausesValidation=3D"False"
/>

HTHs,
Brian

----- Original Message -----
From: "Neel Kaur" <Click here to reveal e-mail address>
Sent: Tue, 6 Aug 2002 15:41:22 +1200
[Original message clipped]

another link button called add
[Original message clipped]

going to do
[Original message clipped]

Reply to this message...
 
    
Tony Stark
Each button has a "causesValidation" attribute. Make sure it's set to
false on the buttons you don't want to trigger the validator.

hth,
Dana

-----Original Message-----
From: Neel Kaur [mailto:Click here to reveal e-mail address]
Sent: Monday, August 05, 2002 11:41 PM
To: aspng-validators
Subject: [aspng-validators] Asp Validators

Hi

In my web page i have a textbox which uses required field validate ....
i want the validaor to occur only when I fire a click event of another
link button called add

but it also fires when i want to go to the next page( which is another
link button next) which I do not want . Can anyone suggest me how I am
going to do

thanks in advance
Neel
| [aspng-validators] member Click here to reveal e-mail address = YOUR ID |
http://www.aspfriends.com/aspfriends/aspng-validators.asp = JOIN/QUIT
Reply to this message...
 
    
sujith bairi
(Type your message here)

--------------------------------
From: sujith bairi
Reply to this message...
 
 
System.Web.UI.WebControls.LinkButton




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification