473,396 Members | 1,995 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Probs in Reqfield validator


Hi,

I have created an aspx page with a textbox and a save button & a cancel
button.I mapped that text box to required field validator.when i press
the submit button it works nice & telling the error message if the
textbox is empty.
But the thing is , if i press the cancel button , also the req.field
validator fires.

I need the validator to be fired only , if i press the submit button.if
i press the cancel button , it should not get fired.Could u pls tell me
how.

With thanks
Raghu


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #1
2 951
Set "false" to CausesValidation property for that submit button. In that
case, validation wont happen if you press submit button. For more detail
about CausesValidation,
http://msdn.microsoft.com/library/de...ationtopic.asp
--
Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com
"Raghu Raman" <ra************@rediffmail.com> wrote in message
news:#9**************@TK2MSFTNGP12.phx.gbl...

Hi,

I have created an aspx page with a textbox and a save button & a cancel
button.I mapped that text box to required field validator.when i press
the submit button it works nice & telling the error message if the
textbox is empty.
But the thing is , if i press the cancel button , also the req.field
validator fires.

I need the validator to be fired only , if i press the submit button.if
i press the cancel button , it should not get fired.Could u pls tell me
how.

With thanks
Raghu


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #2
Hi saravana,

Thanks yar.You people continuesly responding me .Thanks for that.

Raghu(a drop in the ocean)

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: jim | last post by:
I'm trying to find the best way to allow web visitors to download text files (.txt, .wri & .zap file extensions). I'm having some luck. I say some because the open/save box opens with IE but not...
2
by: Paul Neave | last post by:
Please try this out on a PC and a Mac in IE: http://www.neave.com/test.php The boxes should be both the same height, and evenly spaced top and bottom above the text. Mac IE, for some reason,...
12
by: Mikejacko86 | last post by:
Hello everyone! I have decided to convert over my table-based layout to pure CSS, to reduce filesize and to increase my designs flexibility. Apparently, I have run into quite a few problems. I...
0
by: Tom Pearson | last post by:
I create controls and validators dynamically dependent on data at runtime. I create the control then the relevant validator(s) for it assigning the Control.ID as the control to validate. These...
2
by: Nick | last post by:
Hi, I've got some browser compatibility issues with the following page: http://www.iclc-group.com/hspv1/testi.htm It's a straightforward show/hide layer layout with images on the left and linked...
40
by: VK | last post by:
Hi, After the response on my request from W3C I'm still unclear about Tidy vs. Validator discrepansies. That started with <IFRAME> issue, but there is more as I know. Anyway, this very basic...
1
by: Mukesh | last post by:
Currently i am developing a web application using asp.net1.1. I have developed several user control for this application . I am using validator in such user control. My problem is that...
2
by: Mike Collins | last post by:
I have a form where I create dynamic controls at runtime. With this, I am adding a dynamic required field validator to each control as needed, but the validators are not firing when I click submit....
37
by: Prisoner at War | last post by:
Actually, it doesn't have to be a blockquote...but I'm at my wits' end: I want to make bold several lines of text which have a pair of <br /tags between them...seems like the <b></bdo not "carry...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.