473,398 Members | 2,165 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

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 3016
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Stephen | last post by:
Hey Everyone, I have a problem with a web application due to the use of both client-side and server side script on the on-click event of a button. The client side script runs first as expected...
1
by: Stephen | last post by:
Hey All, I have a problem with a web application due to the use of both client-side and server side script on the on-click event of a button. The client side script runs first as expected however...
1
by: Zoe Hart | last post by:
I know that I can use a control's Attributes collection to specify client-side event handlers. I want to add a simple javascript function to pop up a confirmation message for a command button. The...
3
by: Earl Teigrob | last post by:
I wanted my "Terms and Conditions" Checkbox control to participate in my ASP.NET validation just like all the the other controls on the page. After some time of searching the web for an example of...
4
by: | last post by:
Hi Has anyone any experience using client side validation with asp.net forms. Specifically I'd like to know... 1. How do you attach client side code web controls (a button), like a...
3
by: Larry David | last post by:
Hi, I'm just trying to wrap my mind around the ASP.NET model. Let me walk you through a trivial scenario: Let's say I have a form containing a text box where the user enters his name. It also...
1
by: rmgalante | last post by:
I have written an ASP.Net application that uses the standard client-side and server-side validation for various fields on the form. Some of the customers that use the form report symptoms that...
6
by: Ben Fidge | last post by:
Hi I'm interested to know what peoples opinions are on using the Client-side Validators in ASP.NET? I use them very heavily but am experiencing the odd occassion when users have either...
1
by: vidya | last post by:
Hi, I have a button which is a web control. I have some validation in javascript for the button in .aspx file and some in the button onclick event in code behind(C#). I need to get through both...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.