473,385 Members | 1,927 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,385 software developers and data experts.

Validation controls

Hi,

Does Validation controls like "Required field validator".... ever work with
Netscape or we have to write javascript for either client-side or write
server side validation.

Please advice.
Stephen
Nov 18 '05 #1
6 2257
See my answer in the other NG and please don't cross-post.
"Stephen" <st*********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,

Does Validation controls like "Required field validator".... ever work
with
Netscape or we have to write javascript for either client-side or write
server side validation.

Please advice.
Stephen

Nov 18 '05 #2
Hi scott,
thanks for the reply but the required field validator does not work "as
required" in netscape.

suppose i have a text box and a required field validator, when I hit the
"button" in IE, the required field validator captures it and only when I
enter some value, it uses "Response.redirect to another page"

but in Netscape, it just redirects when I hit the button.

Please Advice,
stephen.

"Scott M." <s-***@nospam.nospam> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
See my answer in the other NG and please don't cross-post.
"Stephen" <st*********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,

Does Validation controls like "Required field validator".... ever work
with
Netscape or we have to write javascript for either client-side or write
server side validation.

Please advice.
Stephen


Nov 18 '05 #3
It is possible that you have JavaScript disabled in your copy of Netscape.
The client-side JavaScript that is generated by the RequiredFieldValidator
is standard JavaScript that is compatible with any browser capable of
interpreting JavaScript.

I just did a test on a form that uses Required, Custom and Range Validators
in Netscape 6.2 and they all work properly.


"Stephen" <st*********@hotmail.com> wrote in message
news:ub**************@tk2msftngp13.phx.gbl...
Hi scott,
thanks for the reply but the required field validator does not work "as
required" in netscape.

suppose i have a text box and a required field validator, when I hit the
"button" in IE, the required field validator captures it and only when I
enter some value, it uses "Response.redirect to another page"

but in Netscape, it just redirects when I hit the button.

Please Advice,
stephen.

"Scott M." <s-***@nospam.nospam> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
See my answer in the other NG and please don't cross-post.
"Stephen" <st*********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
> Hi,
>
> Does Validation controls like "Required field validator".... ever work
> with
> Netscape or we have to write javascript for either client-side or write
> server side validation.
>
> Please advice.
> Stephen
>
>



Nov 18 '05 #4
While someone else said the client-side validation scripts work in Netscape,
they do not. Microsoft wrote them using DHTML (IE's scripting system), not
DOM (Netscape's system). You will get javascript errors if you attempt to
use them on Netscape.

I rewrote ASP.NET validation after discovering numerous limitations in
Microsoft's implementation. You can have a look at my solution (its a
commercial product) at http://www.peterblum.com/vam/home.aspx. Its 22
validators all support client-side validation on IE, IE/Mac,
Netscape/Mozilla/FireFox, Opera 7 and Safari.

--- Peter Blum
www.PeterBlum.com
Email: PL****@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx

"Stephen" <st*********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,

Does Validation controls like "Required field validator".... ever work with Netscape or we have to write javascript for either client-side or write
server side validation.

Please advice.
Stephen

Nov 18 '05 #5

"Peter Blum" <PL****@Blum.info> wrote in message
news:eM**************@TK2MSFTNGP10.phx.gbl...
While someone else said the client-side validation scripts work in
Netscape,
they do not. Microsoft wrote them using DHTML (IE's scripting system), not
DOM (Netscape's system). You will get javascript errors if you attempt to
use them on Netscape.
That's just not true. The validation controls work just fine in Netscape
6.2.


I rewrote ASP.NET validation after discovering numerous limitations in
Microsoft's implementation. You can have a look at my solution (its a
commercial product) at http://www.peterblum.com/vam/home.aspx. Its 22
validators all support client-side validation on IE, IE/Mac,
Netscape/Mozilla/FireFox, Opera 7 and Safari.

--- Peter Blum
www.PeterBlum.com
Email: PL****@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx

"Stephen" <st*********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,

Does Validation controls like "Required field validator".... ever work

with
Netscape or we have to write javascript for either client-side or write
server side validation.

Please advice.
Stephen


Nov 18 '05 #6
Hi Scott,

Microsoft's client side validation does not work on DOM browsers. I will
provide two forms of evidence:

1. Microsoft uses document.all to retrieve an object on the page.
document.all is not supported in DOM (which includes Netscape 6 and higher,
Mozilla, and FireFox). The use of document.all alone will generate
javascript errors on these browsers. Search your HTML page and you will see
an array of document.all calls, one for each validator. This will generate
the error as the page loads. Open the WebUIValidation.js file supplied by
Microsoft. Search for document.all. Its the only way the script file uses to
get an object on the page.

2. Here's a complete article on the subject:
http://aspnet.4guysfromrolla.com/articles/051204-1.aspx

The Microsoft validators work fine with server side validation on all
browsers.

--- Peter Blum
www.PeterBlum.com
Email: PL****@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx

"Scott M." <s-***@nospam.nospam> wrote in message
news:uY**************@TK2MSFTNGP09.phx.gbl...

"Peter Blum" <PL****@Blum.info> wrote in message
news:eM**************@TK2MSFTNGP10.phx.gbl...
While someone else said the client-side validation scripts work in
Netscape,
they do not. Microsoft wrote them using DHTML (IE's scripting system),
not
DOM (Netscape's system). You will get javascript errors if you attempt to
use them on Netscape.


That's just not true. The validation controls work just fine in Netscape
6.2.


I rewrote ASP.NET validation after discovering numerous limitations in
Microsoft's implementation. You can have a look at my solution (its a
commercial product) at http://www.peterblum.com/vam/home.aspx. Its 22
validators all support client-side validation on IE, IE/Mac,
Netscape/Mozilla/FireFox, Opera 7 and Safari.

--- Peter Blum
www.PeterBlum.com
Email: PL****@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx

"Stephen" <st*********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,

Does Validation controls like "Required field validator".... ever work

with
Netscape or we have to write javascript for either client-side or write
server side validation.

Please advice.
Stephen



Nov 18 '05 #7

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

Similar topics

2
by: buran | last post by:
Dear ASP.NET Programmers, I have a web user control (a search menu) which has 2 validation controls (one for input and another for the search criterion). I am including this search user control...
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...
5
by: Kyle | last post by:
On my Development System, all the page validation controls work fine (WinXP Pro + SP2, VS.NET 2003, .NET v1.1.4322). On the Production System, none of the page validation controls are working...
12
by: Dabbler | last post by:
I need to insure that at least one of three phone number fields has a value (requiredfield) but I'm not sure of a way to implement this without server side logic. Is there a way to use 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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...

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.