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

validation controls not consistent

Hi,

We make extensive use of validation controls on forms across our sites. For
the most part they seem to work okay, but every now and again some data that
should never have passed through the validators gets inserted into the
database. We've tested and the validators always work for us when we input
the same data ourselves. I suspect this has to do with certain browsers not
being compatible with the javascript the controls produce. However,
shouldn't the validator controls validate both client-side and server-side
on a submit? Basically, are we going to have to have 2 sets of validation
logic like in asp.old (client-side javascript and server-side code) to get
the validation to work correctly?

Cheers

Chris
Nov 17 '05 #1
3 1161
Chris,

Yes, the validators do validate both client and server side.

But server side you need to check if they returned valid before executing
any code that relys on them being valid:

If Page.IsValid Then
'---Execute code here
End If

Sincerely,

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
<ch***@yahoo.com> wrote in message
news:OH*************@TK2MSFTNGP10.phx.gbl...
Hi,

We make extensive use of validation controls on forms across our sites. For the most part they seem to work okay, but every now and again some data that should never have passed through the validators gets inserted into the
database. We've tested and the validators always work for us when we input the same data ourselves. I suspect this has to do with certain browsers not being compatible with the javascript the controls produce. However,
shouldn't the validator controls validate both client-side and server-side
on a submit? Basically, are we going to have to have 2 sets of validation
logic like in asp.old (client-side javascript and server-side code) to get
the validation to work correctly?

Cheers

Chris

Nov 17 '05 #2
Chris,

Yes, the validators do validate both client and server side.

But server side you need to check if they returned valid before executing
any code that relys on them being valid:

If Page.IsValid Then
'---Execute code here
End If

Sincerely,

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
<ch***@yahoo.com> wrote in message
news:OH*************@TK2MSFTNGP10.phx.gbl...
Hi,

We make extensive use of validation controls on forms across our sites. For the most part they seem to work okay, but every now and again some data that should never have passed through the validators gets inserted into the
database. We've tested and the validators always work for us when we input the same data ourselves. I suspect this has to do with certain browsers not being compatible with the javascript the controls produce. However,
shouldn't the validator controls validate both client-side and server-side
on a submit? Basically, are we going to have to have 2 sets of validation
logic like in asp.old (client-side javascript and server-side code) to get
the validation to work correctly?

Cheers

Chris

Nov 17 '05 #3
Thanks, just what i was looking for.

Cheers

Chris

"S. Justin Gengo" <sj*****@aboutfortunate.com> wrote in message
news:ui**************@TK2MSFTNGP10.phx.gbl...
Chris,

Yes, the validators do validate both client and server side.

But server side you need to check if they returned valid before executing
any code that relys on them being valid:

If Page.IsValid Then
'---Execute code here
End If

Sincerely,

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
<ch***@yahoo.com> wrote in message
news:OH*************@TK2MSFTNGP10.phx.gbl...
Hi,

We make extensive use of validation controls on forms across our sites.

For
the most part they seem to work okay, but every now and again some data

that
should never have passed through the validators gets inserted into the
database. We've tested and the validators always work for us when we

input
the same data ourselves. I suspect this has to do with certain browsers

not
being compatible with the javascript the controls produce. However,
shouldn't the validator controls validate both client-side and server-side on a submit? Basically, are we going to have to have 2 sets of validation logic like in asp.old (client-side javascript and server-side code) to get the validation to work correctly?

Cheers

Chris


Nov 17 '05 #4

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

Similar topics

8
by: Calan | last post by:
I have a server-side ASP script that dynamically creates an input form from a database table. The table contains a field name, the table where values are stored, type of input control, value for a...
0
by: | last post by:
Hi, We make extensive use of validation controls on forms across our sites. For the most part they seem to work okay, but every now and again some data that should never have passed through the...
6
by: Nedu N | last post by:
Hi, I want to have confirmation(Yes/No) on a button of the webform in which there are many validation controls. I want all the validation controls to be triggered first and then Yes/No...
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)...
6
by: Stephen | last post by:
Hi, the validation controls dont work on Netscape or Mozilla and only on Internet Explorer why? How do i correct this problem? Thanks
2
by: Martyn Fewtrell | last post by:
Dear All I have a Windows 2003 Server with IIS6 where the validation controls on ASP.Net pages no longer work. I believe it to be specific to the server as if I create an ASP.Net page on the...
7
by: Ryan Ternier | last post by:
We're running a site that has required field validation on the login page. It works fine on our development / test machines. However, when I upload this site to our live server i get this error. ...
2
by: Tim Frawley | last post by:
Source code attached indicates my problem with validation and a button bar save button. Fill the Textbox with some text then tab off the control. The message box will display the text in the...
0
by: dhurwitz | last post by:
Hi, In my ASP.NET 2.0 web app, I have a user control, ucBinEdges, with several text boxes. The user control has several validation controls validating the Text of these text boxes -...
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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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,...

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.