473,406 Members | 2,707 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.

Validators in other browsers

I just loaded my application in Firefox in it's default state to see how
it would look and work. There were some formatting issues, but the most
problematic thing was none of my validation controls work.
Now I was under the impression that asp.net was supposed to adjust
output to whatever browse was being used to display as well as possible.
I also thought in the case of validation controls that they would do
server-side validation if client-side scripting wasn't available.

Obviously I was mistaken. What (if anything) can I do to make my
standard (compare, regex, required field) validators use server-side
validation when client-side isn't an option? Thanks!

Matt
Nov 18 '05 #1
2 798
Server side validation happens by default. Just make sure in your button
click event handler you enclose your code with

If Page.IsValid Then
'code goes here

Else
'do whatever

End if.

"MattB" wrote:
I just loaded my application in Firefox in it's default state to see how
it would look and work. There were some formatting issues, but the most
problematic thing was none of my validation controls work.
Now I was under the impression that asp.net was supposed to adjust
output to whatever browse was being used to display as well as possible.
I also thought in the case of validation controls that they would do
server-side validation if client-side scripting wasn't available.

Obviously I was mistaken. What (if anything) can I do to make my
standard (compare, regex, required field) validators use server-side
validation when client-side isn't an option? Thanks!

Matt

Nov 18 '05 #2
Great. Thanks!

Tampa .NET Koder wrote:
Server side validation happens by default. Just make sure in your button
click event handler you enclose your code with

If Page.IsValid Then
'code goes here

Else
'do whatever

End if.

"MattB" wrote:

I just loaded my application in Firefox in it's default state to see how
it would look and work. There were some formatting issues, but the most
problematic thing was none of my validation controls work.
Now I was under the impression that asp.net was supposed to adjust
output to whatever browse was being used to display as well as possible.
I also thought in the case of validation controls that they would do
server-side validation if client-side scripting wasn't available.

Obviously I was mistaken. What (if anything) can I do to make my
standard (compare, regex, required field) validators use server-side
validation when client-side isn't an option? Thanks!

Matt

Nov 18 '05 #3

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

Similar topics

8
by: Hostile17 | last post by:
Consider the following HTML. ---------- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd"> <html> <head> <meta...
1
by: MonkeyBoy | last post by:
I am doing some some HTML manipulation in client-side script (IE5.x and IE6.x browsers only). Something like.. var tmpHTML = oTable.outerHTML // do something to the HTML her oTable.outerHTML =...
0
by: interuser | last post by:
I have an existing large application that uses validators. I have a problem with the client side validators not working on netscape (and any browser other than IE). As you may already know, the...
3
by: John Blair | last post by:
Hi, I have validators outside of a datagrid (for adding a new grid row) - however when i click "edit" column and then the "update" column of a grid row that has been edited - my other...
1
by: Jason | last post by:
I am able fire my field validators in FireFox on the server side using... Page.Validate() If Not Page.IsValid Then Exit Sub End If But the it won't fire Custom Validators. Anybody know why?
5
by: Jason | last post by:
I am able fire my field validators in FireFox on the server side using... Page.Validate() If Not Page.IsValid Then Exit Sub End If But the it won't fire Custom Validators. Anybody know why?
1
by: Gabriel Lozano-Morán | last post by:
When using the tabstrip control combined with a multipage (several pageview) there is a problem when using validators. The problem is that validation also occurs on the validators that are not on...
5
by: John Abbler | last post by:
I'm currently testing doing some testing with other browsers and have found that my custom field validators aren't firing with Firefox or Netscape, but they work fine with Ie. Here's the code...
4
by: tshad | last post by:
I have a RegularExpressionValidator that is testing a field to make sure the number is between 0 and 255. It works fine in IE, but doesn't work in Mozilla or Firefox. ...
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...
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
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
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
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...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.