470,636 Members | 1,526 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,636 developers. It's quick & easy.

Stopping client side event validation

Hi all,

I've been trying unsuccessfully to stop client side event validation.
I've created a simple page with a text box, a required field validator
and a server button with the following settings:

1. <pages enableEventValidation="false"in web.config
2. EnableClientScript="false" in the required field validator.
3. EnableEventValidation="false" in the Page directive (which, I know,
is not necessary).

I can programmatically check the web.config setting and it is correctly
set to "false".

Whenever the validator is on the form, it generates all of the extra
javascript (the onclick for the button, and the __EVENTTARGET and
__EVENTARGUMENT hidden inputs).

Is there anything I'm missing here? I just want to have server-side
validation without the client script but there doesn't appear to be an
easy way to turn this off.

Any help would be much appreciated.

Thanks,

Paul

Sep 11 '06 #1
3 2910
using EnableClientScript="false" will turn off a required validators client
side validation.
this will now be handled server side.

I think you are testing this locally, and confusing the speed of a local
callback with client side validation.

try add a System.Threading.Thread.Sleep(2000) in your page load and see if
there's a difference between EnableClientScript="false" and
EnableClientScript="true"
"Paul" <pa*********@gmail.comwrote in message
news:11**********************@d34g2000cwd.googlegr oups.com...
Hi all,

I've been trying unsuccessfully to stop client side event validation.
I've created a simple page with a text box, a required field validator
and a server button with the following settings:

1. <pages enableEventValidation="false"in web.config
2. EnableClientScript="false" in the required field validator.
3. EnableEventValidation="false" in the Page directive (which, I know,
is not necessary).

I can programmatically check the web.config setting and it is correctly
set to "false".

Whenever the validator is on the form, it generates all of the extra
javascript (the onclick for the button, and the __EVENTTARGET and
__EVENTARGUMENT hidden inputs).

Is there anything I'm missing here? I just want to have server-side
validation without the client script but there doesn't appear to be an
easy way to turn this off.

Any help would be much appreciated.

Thanks,

Paul

Sep 11 '06 #2
Hi Grant,

I have this set to false, but it still emits all of the extra
javascript. If I remove the validator, the javascript doesn't get
emitted.

Any thoughts?

Thanks,

Paul

Grant Merwitz wrote:
using EnableClientScript="false" will turn off a required validators client
side validation.
this will now be handled server side.

I think you are testing this locally, and confusing the speed of a local
callback with client side validation.

try add a System.Threading.Thread.Sleep(2000) in your page load and see if
there's a difference between EnableClientScript="false" and
EnableClientScript="true"
"Paul" <pa*********@gmail.comwrote in message
news:11**********************@d34g2000cwd.googlegr oups.com...
Hi all,

I've been trying unsuccessfully to stop client side event validation.
I've created a simple page with a text box, a required field validator
and a server button with the following settings:

1. <pages enableEventValidation="false"in web.config
2. EnableClientScript="false" in the required field validator.
3. EnableEventValidation="false" in the Page directive (which, I know,
is not necessary).

I can programmatically check the web.config setting and it is correctly
set to "false".

Whenever the validator is on the form, it generates all of the extra
javascript (the onclick for the button, and the __EVENTTARGET and
__EVENTARGUMENT hidden inputs).

Is there anything I'm missing here? I just want to have server-side
validation without the client script but there doesn't appear to be an
easy way to turn this off.

Any help would be much appreciated.

Thanks,

Paul
Sep 11 '06 #3
oh, so you're worried about the javascript in the page.
I thought you were just trying to deactivate it.

Not sure exactly,
if you remake the page from scratch it should work nicely
Just don't add any validators
"Paul" <pa*********@gmail.comwrote in message
news:11*********************@i42g2000cwa.googlegro ups.com...
Hi Grant,

I have this set to false, but it still emits all of the extra
javascript. If I remove the validator, the javascript doesn't get
emitted.

Any thoughts?

Thanks,

Paul

Grant Merwitz wrote:
>using EnableClientScript="false" will turn off a required validators
client
side validation.
this will now be handled server side.

I think you are testing this locally, and confusing the speed of a local
callback with client side validation.

try add a System.Threading.Thread.Sleep(2000) in your page load and see
if
there's a difference between EnableClientScript="false" and
EnableClientScript="true"
"Paul" <pa*********@gmail.comwrote in message
news:11**********************@d34g2000cwd.googleg roups.com...
Hi all,

I've been trying unsuccessfully to stop client side event validation.
I've created a simple page with a text box, a required field validator
and a server button with the following settings:

1. <pages enableEventValidation="false"in web.config
2. EnableClientScript="false" in the required field validator.
3. EnableEventValidation="false" in the Page directive (which, I know,
is not necessary).

I can programmatically check the web.config setting and it is correctly
set to "false".

Whenever the validator is on the form, it generates all of the extra
javascript (the onclick for the button, and the __EVENTTARGET and
__EVENTARGUMENT hidden inputs).

Is there anything I'm missing here? I just want to have server-side
validation without the client script but there doesn't appear to be an
easy way to turn this off.

Any help would be much appreciated.

Thanks,

Paul

Sep 12 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Stephen | last post: by
3 posts views Thread by Larry David | last post: by
1 post views Thread by rmgalante | last post: by
6 posts views Thread by Ben Fidge | last post: by
1 post views Thread by Korara | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.