ASP.NET

Moderators: None (Apply to moderate this forum)
Number of threads: 1727
Number of posts: 3292

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Problem with required field validator. Posted by Nikhil Vaghela on 18 Feb 2005 at 12:17 AM
hello,

I have one page in which submit and reset buttons are there and there are some fields which are required to be filled.Reset is my html input control in which i have retun on onclick "document.Form1.Reset()" .

Now my problem is when i click on submit withouth entering required data the validator message will be displayed but on click o Reset only textbox becomes empty but RFV messages remains still there.How to avoid/remove that ????

thanks,
NIKHIL.
Report
Re: Problem with required field validator. Posted by Xtreme.NET on 20 Feb 2005 at 6:27 PM
I didnt try it, but just a suggestion, have you tried to disable the validators? or set validate = false for them on reset? or something?
R. Thomas

"Rejoice always, pray without ceasing, in everything give thanks; for this is the will of God in Christ Jesus for you."[i]1Thess. 5:16-18[/i]

Report
Re: Problem with required field validator. Posted by Nikhil Vaghela on 20 Feb 2005 at 8:58 PM
: I didnt try it, but just a suggestion, have you tried to disable the validators? or set validate = false for them on reset? or something?
: R. Thomas
:
: "Rejoice always, pray without ceasing, in everything give thanks; for this is the will of God in Christ Jesus for you."[i]1Thess. 5:16-18[/i]
:
:
well thanks for ur suggestion,
Ya i tried that.In javascript i took Page_Validators array which will be generated by asp.net but disabling rather making its visible false will not solve the problem because when another servers side controls left empty its validation will fire and at that time that will be invisible.So to make it visible again we need to write javascript and i am having one grid in which edit template is there and we cant handle it in javascript..hope u got my problem ?
Report
Re: Problem with required field validator. Posted by dingsea on 22 Feb 2005 at 8:22 PM
try ReLoad Methrod?



Report
Re: Problem with required field validator. Posted by Mehanathen on 1 Apr 2005 at 3:59 AM
on the click event of Reset button set the visibility of RFV as false or set the Display type property of the RFV as Dynamic
Report
Re: Problem with required field validator. Posted by prawin_dss on 17 May 2005 at 4:58 AM


hi..

try out this... in a java script function and call that function in reset button click event as
<INPUT type="reset" value="Reset" onclick="fun1()">

<script>
function fun1()
{
document.Form1.reset();
document.all["ValidationSummary1"].style.display='none';
}
</script>






: hello,
:
: I have one page in which submit and reset buttons are there and there are some fields which are required to be filled.Reset is my html input control in which i have retun on onclick "document.Form1.Reset()" .
:
: Now my problem is when i click on submit withouth entering required data the validator message will be displayed but on click o Reset only textbox becomes empty but RFV messages remains still there.How to avoid/remove that ????
:
: thanks,
: NIKHIL.
:







Report
Re: Problem with required field validator. Posted by Ash-mer on 16 Jun 2010 at 12:09 PM
Use the property of the asp button CausesValidation="false"



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.