Hi,
First, you'll want an HTML button so that you can more easily add
client-side script to its click event. Then you will want to disable the
validation control by calling ValidatorEnable(RequiredFieldValidator,
false).
For more information, see
http://msdn.microsoft.com/library/de...us/dnaspp/html
/aspplusvalid.asp and search within it for the text ValidatorEnable. It
includes sample code.
I hope this helps.
Thank you, Mike
Microsoft, ASP.NET Support Professional
Microsoft highly recommends to all of our customers that they visit the
http://www.microsoft.com/protect site and perform the three straightforward
steps listed to improve your computer’s security.
This posting is provided "AS IS", with no warranties, and confers no rights.
--------------------
From: "RA" <ro****@hotmail.com>
Subject: Rquired field validator - client side problem
Date: Wed, 15 Oct 2003 13:31:58 -0500
Lines: 10
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Message-ID: <e2**************@TK2MSFTNGP12.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.aspnet
NNTP-Posting-Host: dialup-67.27.136.33.dial1.minneapolis1.level3.net
67.27.136.33 Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:184393
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
Hi
How do I disable it if the user pressed a button:
asp:imagebutton id="btnHome" onclick="test()" runat="server"
What I want to have is that if someone presses this button then the
required field validator won't be activated so the user can move out of the current
page.