473,799 Members | 2,954 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 enableEventVali dation="false"i n web.config
2. EnableClientScr ipt="false" in the required field validator.
3. EnableEventVali dation="false" in the Page directive (which, I know,
is not necessary).

I can programmaticall y 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 3042
using EnableClientScr ipt="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.Threadin g.Thread.Sleep( 2000) in your page load and see if
there's a difference between EnableClientScr ipt="false" and
EnableClientScr ipt="true"
"Paul" <pa*********@gm ail.comwrote in message
news:11******** **************@ d34g2000cwd.goo glegroups.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 enableEventVali dation="false"i n web.config
2. EnableClientScr ipt="false" in the required field validator.
3. EnableEventVali dation="false" in the Page directive (which, I know,
is not necessary).

I can programmaticall y 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 EnableClientScr ipt="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.Threadin g.Thread.Sleep( 2000) in your page load and see if
there's a difference between EnableClientScr ipt="false" and
EnableClientScr ipt="true"
"Paul" <pa*********@gm ail.comwrote in message
news:11******** **************@ d34g2000cwd.goo glegroups.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 enableEventVali dation="false"i n web.config
2. EnableClientScr ipt="false" in the required field validator.
3. EnableEventVali dation="false" in the Page directive (which, I know,
is not necessary).

I can programmaticall y 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*********@gm ail.comwrote in message
news:11******** *************@i 42g2000cwa.goog legroups.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 EnableClientScr ipt="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.Threadin g.Thread.Sleep( 2000) in your page load and see
if
there's a difference between EnableClientScr ipt="false" and
EnableClientSc ript="true"
"Paul" <pa*********@gm ail.comwrote in message
news:11******* *************** @d34g2000cwd.go oglegroups.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 enableEventVali dation="false"i n web.config
2. EnableClientScr ipt="false" in the required field validator.
3. EnableEventVali dation="false" in the Page directive (which, I know,
is not necessary).

I can programmaticall y 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
2334
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 however my problem is that this code runs and brings up a Microsoft Internet Explorer Window telling the user they are going to be charged for the search they are about to do. The user then has to click ok or cancel. My problem with this is that I...
1
2321
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 my problem is that this code runs and brings up a Microsoft Internet Explorer Window telling the user they are going to be charged for the search they are about to do. The user then has to click ok or cancel. My problem with this is that I need...
1
1495
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 problem is that the page uses several client-side field validators so ASP.NET is already using the control's onClick event to call the validation logic. Is it possible to have a custom client-side handler when you're using the validator controls?...
3
13142
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 how to do this, I created the script to do it and thought I would share it. Its a littel messy but does the job. If anyone has a better solution, please let me know. //Client Site Event Handler to put in Page_Load event...
4
4134
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 JavaScript 'onclick' event for example? 2. Any issues anyone has experienced using client side validation with asp.net forms?
3
1592
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 contains a button, labeled "Process Now!" My goal is to examine the user's name and upload it into a database. Since all of the elements (the form, the text box, and the button) have
1
5241
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 appear to be the result of double-clicking the submit button on the form. The form has three ASP:Button tags, each of which gets translated into INPUT TYPE="SUBMIT" HTML elements. One submits the form's data. One logs the user out. And the other...
6
1296
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 intentionally or inadvertantly bipassed them. Any ideas on how this could happen. I know that a determined hacker can push data into http context and viewstate. But other than that, would disabling javascript in the browser allow a user to bipass...
1
2521
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 the java script validation as well as the click in code behind? How can this be done ? Can I call the code behind from the javascript function? If not can i have a separate procedure in C# file and call it from the javascript function? If so...
0
10250
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10222
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10026
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9068
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6805
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5463
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5585
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4139
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3757
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.