Ask a Question related to ASP.NET General, Design and Development.
-
Charles A. Lackman #1
Validation Controls
Hello, I have placed many validation controls on an aspx webform and a user
control that allows the visitor to enter a username and password and bypass
the form. The problem I am having is that the validation controls are
firing and not allow the visitor to logon because the validation controls
are saying that the other textboxes need to be filled in.
Is there a way around this problem? Or do I have to discard all the
validation controls on the page and namually generate validation logic in
the submit buttons?
Thanks
Chuck
Charles A. Lackman Guest
-
Validation Between Controls
I have a datagrid with several fields with textboxes and drop downs. I want to be able to validate the drop down field in one column to only be... -
BIG WARNING - validation controls appear to be ignored.
Hi, Although I have got to the bottom of this problem, it gave me quite a shock to discover how easy it is to write a very unsafe application... -
ASP.Net Validation controls not working in netscape
Hi all, The Asp.net validation controls are skipping the validations in netscape.Please suggest a solution for this. Thanks Srinivasa... -
Validation on custom controls
Hi, I searched through NG's etc but could not find an answer to my problem..... I have a custom control that consists of 3 textboxes. I would... -
Validation Controls Postback
I have a little problem while working with Validation Controls in extensive forms... When the user reaches the end, and something is wrong, it just... -
Vincent V #2
Re: Validation Controls
Make sure ur bottons .causevalidation is set to false
and u should be able to manualy check the things you want
ie if myvalidator.isvalid
"Charles A. Lackman" <Charles@cet.com> wrote in message
news:udaO9koQDHA.2476@TK2MSFTNGP10.phx.gbl...user> Hello, I have placed many validation controls on an aspx webform and abypass> control that allows the visitor to enter a username and password and> the form. The problem I am having is that the validation controls are
> firing and not allow the visitor to logon because the validation controls
> are saying that the other textboxes need to be filled in.
>
> Is there a way around this problem? Or do I have to discard all the
> validation controls on the page and namually generate validation logic in
> the submit buttons?
>
> Thanks
>
> Chuck
>
>
Vincent V Guest
-
Ian Oldbury #3
validation controls
I've a datagrid with a textbox with autopostback=True and also validation
controls.
Even if the validation controls fail the postback still occurs.
How can i stop this happening?
ian
Ian Oldbury Guest
-
Jared #4
Re: validation controls
You can test for page validity in the form load event .
If Not Page.IsValid Then
' only executed when the page has been validated.
End If
You cannot assume the user has client side script enabled, that's why
validation control run at both client side and server side (also so a savvy
users cannot post nonvalidated input to the server), just make sure the page
is valid before you perform your processing.
HTH,
Jared
"Ian Oldbury" <ian_oldbury@_NO_msn_SPAM_.com> wrote in message
news:%23n1mCktqEHA.536@TK2MSFTNGP09.phx.gbl...> I've a datagrid with a textbox with autopostback=True and also validation
> controls.
> Even if the validation controls fail the postback still occurs.
> How can i stop this happening?
>
> ian
>
>
Jared Guest
-
Jared #5
Re: validation controls
Sorry, this should exclude the not in the test
If Page.IsValid Then
...
End If
"Jared" <ask_me_for_it@nospam.com> wrote in message
news:10mfqdm79r6l1cf@corp.supernews.com...> You can test for page validity in the form load event .
>
> If Not Page.IsValid Then
> ' only executed when the page has been validated.
> End If
>
> You cannot assume the user has client side script enabled, that's why
> validation control run at both client side and server side (also so a
> savvy users cannot post nonvalidated input to the server), just make sure
> the page is valid before you perform your processing.
>
> HTH,
> Jared
>
> "Ian Oldbury" <ian_oldbury@_NO_msn_SPAM_.com> wrote in message
> news:%23n1mCktqEHA.536@TK2MSFTNGP09.phx.gbl...>>> I've a datagrid with a textbox with autopostback=True and also validation
>> controls.
>> Even if the validation controls fail the postback still occurs.
>> How can i stop this happening?
>>
>> ian
>>
>>
>
Jared Guest



Reply With Quote

