[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.sdk

Re: Bypass validation in asp.net

Andrew Gnenny

9/24/2003 10:35:00 AM

Hi,

The System.Web.UI.WebControls.Button has the property named
CausesValidation.
If you set this property to false, the button will not cause validation.

--
Andrew Gnenny
X-Unity Test Studio
http://x-unity.miik.com.ua/tests...
Bring the power of unit testing to VS .NET IDE


"Dicky" <dicky_wong_hk@hotmail.com> wrote in message
news:OR80ZVd2CHA.2180@TK2MSFTNGP12.phx.gbl...
> Hi,
> I am writing a asp.net page which contains several buttons.
> One button is used to submit all data in the page to the server. So i want
> this buttons will do some operations after some validation by means of
> regular expression.
>
> However, one of the other button is merely used to change the view of the
> homepage. Unfortunately, this button is required to do the operation after
> the validation, which the homepage cannot pass a postback message to
server
> if you dont input all validated data.
>
> So users need to input all required validated data before i pressed that
> button for changing the view of homepage, which is inconvenience for
users.
>
> Are there any good methods to bypass the validation for that button only.
>
> Thank you for your kind attention.
>
> Best regards,
> Dicky
>
>


1 Answer

AleXX

12/26/2008 11:03:00 AM

0

"Polar Bear" <bear@b.com> wrote in message
news:4954ad33.1086312@news.singnet.net.sg...
> On Thu, 25 Dec 2008 00:00:02 -0800 (PST), Zanzibar
> <zanzibar_duck@yahoo.com>
> wrote:
>
>>On Dec 25, 7:52=A0am, "kingkong" <hah...@yahoo.com> wrote:
>>> Seems to me more and more unemployed Singaporean are hanging around in
>>> coffeeshops complaining about lack of jobs.
>>>
>>> I'm not sure how spending time drinking beer, smoking cigarettes and
>>> complaining about foreign workers taking away their jobs in coffeeshop
>>> wi=
>>ll
>>> help them find another job.
>>>
>>> Unless these unemployed Singaporean are retired or cash rich, they
>>> should
>>> probably stop berating other eager job hunters, locals or otherwise, and
>>> thank them for doing those lower pay, longer hours and poorer working
>>> conditions jobs due these unemployed Singaporean are unwilling to do.
>>
>>They are waiting on that MIW which promised to size jobs with dignity.
>
> They are still waiting for Ah Goh's promise on Swiss living standard.
> dreaming
> they are sipping coffee at Lucerne.
>
>

Swiss standard of living or dreaming of Swiss standard of living?