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

CustomValidator Doesn't Run on FireFox

Do CustomValidators run on FireFox and Netscape?

If not, how do you run a client-side script for field validation, submit the
form to ASP.NET when is passes validation, and then do your server-side
processing?

Thanks in advance.

Nov 19 '05 #1
7 3575
In ASP.NET v1.x validation controls don't render client javascript in non-IE
browsers. In ASP.NET v2.0 they do.

-Brock
DevelopMentor
http://staff.develop.com/ballen
Do CustomValidators run on FireFox and Netscape?

If not, how do you run a client-side script for field validation,
submit the form to ASP.NET when is passes validation, and then do your
server-side processing?

Thanks in advance.


Nov 19 '05 #2

"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
In ASP.NET v1.x validation controls don't render client javascript in
non-IE browsers. In ASP.NET v2.0 they do.


Thanks for the reply.

That's pretty much what I was afraid of.

Is it possible to use a client-side script to handle the validation first,
and then submit the page for server-side processing? Or do I just need to
completely handle validation on the server for non-IE browsers?

Nov 19 '05 #3
>> In ASP.NET v1.x validation controls don't render client javascript in
non-IE
Thanks MicroSoft.

Your presumption that all Non-IE browsers are older and less capable than
your outdated browser was right on the mark.

Bob Lehmann

Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:10***********************@msnews.microsoft.co m...
In ASP.NET v1.x validation controls don't render client javascript in non-IE browsers. In ASP.NET v2.0 they do.

-Brock
DevelopMentor
http://staff.develop.com/ballen
Do CustomValidators run on FireFox and Netscape?

If not, how do you run a client-side script for field validation,
submit the form to ASP.NET when is passes validation, and then do your
server-side processing?

Thanks in advance.


Nov 19 '05 #4
The ASP.NET validation always does server side validation regardless of the
type of browser, so if you use it, even though you might not get the client
side support in FireFox it'll still run the validation logic on the server.
Your server events (like Click) still fires, so to see if the page passes
validation, check the IsValid property in your event handlers before taking
the data and writing is to the DB.

-Brock
DevelopMentor
http://staff.develop.com/ballen
"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
In ASP.NET v1.x validation controls don't render client javascript in
non-IE browsers. In ASP.NET v2.0 they do.

Thanks for the reply.

That's pretty much what I was afraid of.

Is it possible to use a client-side script to handle the validation
first, and then submit the page for server-side processing? Or do I
just need to completely handle validation on the server for non-IE
browsers?


Nov 19 '05 #5
ASP.net 1.1 validators are not reliable on non IE browsers. In all my
problem cases, the validation always worked in IE.

I have found problems with both client side and server side, when using
Firefox even though browsercap was updated.


"Steve Murphy" <sm*****@granite-ridge.com> wrote in message
news:ud**************@TK2MSFTNGP12.phx.gbl...
Do CustomValidators run on FireFox and Netscape?

If not, how do you run a client-side script for field validation, submit
the form to ASP.NET when is passes validation, and then do your
server-side processing?

Thanks in advance.

Nov 19 '05 #6
"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
The ASP.NET validation always does server side validation regardless of
the type of browser, so if you use it, even though you might not get the
client side support in FireFox it'll still run the validation logic on the
server. Your server events (like Click) still fires, so to see if the page
passes validation, check the IsValid property in your event handlers
before taking the data and writing is to the DB.


The client-side validation is what I'm looking for. Server-side is no
problem; I just handle it as part of the record update process.

What I was hoping to do was handle the client-side with regular everyday
Javascript running off an HTML button. Then if the record passes validation,
have the Javascript submit the page to the server for handling there. Is
that possible?

I guess I will also want to intercept processing on a datagrid as well, and
perform client-side handling before submitting to the server.

Is this possible under ASP.NET, or am I just trying to design against its
architecture?

Thanks.
Nov 19 '05 #7
There are several third party replacements to Microsoft's validators that
support client-side validation on many more browsers than IE and IE/Mac. I
make one called "Professional Validation And More"
(http://www.peterblum.com/vam/home.aspx). Its 25 validators support IE,
IE/Mac, FireFox, Netscape 6+, Mozilla, Opera 7, Safari, Camino, and OmniWeb.

I designed it to greatly reduce the amount of custom coding users experience
with the original validators. In many cases, you won't need a custom
validator because my existing validators handle the case.

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

"Steve Murphy" <sm*****@granite-ridge.com> wrote in message
news:ud**************@TK2MSFTNGP12.phx.gbl...
Do CustomValidators run on FireFox and Netscape?

If not, how do you run a client-side script for field validation, submit
the form to ASP.NET when is passes validation, and then do your
server-side processing?

Thanks in advance.

Nov 19 '05 #8

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

Similar topics

10
by: Mr. x | last post by:
Hello, I have some code as follows. It seems that customValidator doesn't work - because i don't get any message. In the body : <asp:table> <asp:TableRow>
5
by: Gene McCrory | last post by:
Is it possible to have a CustomValidator against two controls in an EditItemTemplate on a DataGrid? Case: Have a business rule that states if ATextBox starts with "ACertainValue" then BTextBox...
3
by: Ronan Dodworth | last post by:
Hi there I'm having a little bit of a problem with my customvalidator control. The problem is the javascript runs fine on my local webserver IIS but not when I post it to the web hosting server....
1
by: SMG | last post by:
Hi All. My forms has two textboxes, 1 username, 2 password. Both has requiredfield validator it works fine when there is no input in these textboxes. And the errorMsg is shown in...
1
by: Ricky Williams | last post by:
I have a CustomValidator for a Radio Button that works fine with IE, but doesn't trigger with Firefox or Netscape. I have been stuck on this one for 3 weeks; any suggestions greatly appreciated....
0
by: bauer.todd | last post by:
The following page works fine on FireFox (the custom validator checks to make sure that there's a value in the file upload text box). However, on IE 7, when there's a value in the text box, the...
3
by: Stan SR | last post by:
Hi, I have a web user control that contains 3 dropdownlists it's a date selector, so one contains the days, one the months and the last the years. Each of them starts with a blank value. I...
1
by: theresa | last post by:
I'm about at my wits end trying to figure out why this isn't working, so I'm hoping one of you can help! I'm sure there must be something simple I'm missing. I have a checkbox on an Asp.NET 2.0...
2
by: testemailsystem.test | last post by:
Hi everyone, I use CustomValidator with the server event onservervalidate (no javascript event). The scenario : The user filled the form and pressed SUBMIT. But because there was an error –...
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: 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
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
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.