473,325 Members | 2,816 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,325 software developers and data experts.

Client Side Validation Controls

Hi, I've just published a test web site on the internet with a simple form
and some client side validation controls. On my development PC if I click
submit without entering any data the validation controls work and prompt me
as expected.
On the live web server I do exactly the same thing but no validation is
performed and the form is submitted.
How can this be?
Have I missed something in the setup script? I added both the primary
output files and the content files to the build script is there anything
else I need to add?

Thanks,
Gareth
Nov 17 '05 #1
3 1248
Client side validation is done using the scripts in the "aspnet_client"
folder. Does this folder exist in your application? It's usually installed
into each website (in IIS) when the framework is installed. If your
application is running in a virtual directory, then the aspnet_client folder
needs to be in the root folder of that website.

Hope this helps,

Mun


"Gareth" <gcparris at hotmail dot com> wrote in message
news:O8**************@TK2MSFTNGP09.phx.gbl...
Hi, I've just published a test web site on the internet with a simple form
and some client side validation controls. On my development PC if I click
submit without entering any data the validation controls work and prompt me as expected.
On the live web server I do exactly the same thing but no validation is
performed and the form is submitted.
How can this be?
Have I missed something in the setup script? I added both the primary
output files and the content files to the build script is there anything
else I need to add?

Thanks,
Gareth

Nov 17 '05 #2
Also note that if client-side validation fails for a reason or another you
need to check Page.IsValid before any validation-dependant critical code
runs. This way you can be sure that no incorrect input is passed through
even if client-side validation would fail. Server-side validation always
fires automatically with built-in validation controls, but you must manually
check Page.IsValid.

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist

"Gareth" <gcparris at hotmail dot com> wrote in message
news:O8**************@TK2MSFTNGP09.phx.gbl...
Hi, I've just published a test web site on the internet with a simple form
and some client side validation controls. On my development PC if I click
submit without entering any data the validation controls work and prompt me as expected.
On the live web server I do exactly the same thing but no validation is
performed and the form is submitted.
How can this be?
Have I missed something in the setup script? I added both the primary
output files and the content files to the build script is there anything
else I need to add?

Thanks,
Gareth

Nov 17 '05 #3
Thank you both for those tips. I have now solved my problem.

1) I had not set permission for the custom account to access (read) the
aspnet_client directory.
2) I was not checking the Page.IsValid property on the submission.

Implementing both of these cured my problems.
Many thanks once again!
Regards,
Gareth
"Gareth" <gcparris at hotmail dot com> wrote in message
news:O8**************@TK2MSFTNGP09.phx.gbl...
Hi, I've just published a test web site on the internet with a simple form
and some client side validation controls. On my development PC if I click
submit without entering any data the validation controls work and prompt me as expected.
On the live web server I do exactly the same thing but no validation is
performed and the form is submitted.
How can this be?
Have I missed something in the setup script? I added both the primary
output files and the content files to the build script is there anything
else I need to add?

Thanks,
Gareth

Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: | last post by:
Hello Guys, I am using the validation controls to validate my data. But the problem is "The page is still being posted to server". I want to get rid of the round trips to server. Are there...
14
by: Matt | last post by:
I want to know if ASP.NET Web Forms Validation Controls are Server-Side or Client-Side form validation? Since I think each validator control can select either 1) JavaScript based error dialog or 2)...
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...
5
by: Mong | last post by:
Hi, I have a webform with various asp controls on it such as textboxes and dropdownlists. I'm fairly new to asp.net coming from VB6 and am wondering when it's best to use client side events and...
5
by: Sun Jian | last post by:
Hi, I am trying to customize the asp.net validation to achieve the following: Upon submitting the form, client side validation will run, and it will stop at the first error detected. For...
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...
4
by: Terry Olsen | last post by:
How would I go about validating on the client side before a post back? I do it now in the code with something like "if TextBox.Text="" then..." I'd like to do it on the client but I've never been...
1
by: Hong Hao | last post by:
Recently, I was trying to modify an existing aspx page when client-side validation on that page stopped working. I searched this group and the web in general and found that other people have had...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.