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

Help Regarding Server Side Validation...

Hi All,

I m facing a problem. As u know asp.net vallidators did not work in non-microsoft browsers.
So for that i m using Server Side Solution. But i don't understand how can i show the validation summery with all messeges as they show on client side in IE.
Means that when we submit the form to server in IE, then page is validated on the client side and if there is some error these are shown in the Validation Summery as a list.
This thing i want to do in Non-Microsoft Browsers. Means when i validate the page on the server. Then i want to show all error messeges in validation summery as on the client side in IE.

Regard,
Muhammad Jamil Nawaz
Nov 19 '05 #1
2 1388
Validation in ASP.NET happens both client side and server side. Client side
only works if you have an IE browser. So for non-IE server side stuff still
fires and you shouldn't have to do anything special. The summary should also
be displayed just fine, as long as you don't use the ShowMessageBox=true
option.

-Brock
DevelopMentor
http://staff.develop.com/ballen
Hi All,

I m facing a problem. As u know asp.net vallidators did not work in
non-microsoft browsers.
So for that i m using Server Side Solution. But i don't understand how
can i show the validation summery with all messeges as they show on
client side in IE.
Means that when we submit the form to server in IE, then page is
validated on the client side and if there is some error these are
shown
in the Validation Summery as a list.
This thing i want to do in Non-Microsoft Browsers. Means when i
validate
the page on the server. Then i want to show all error messeges in
validation summery as on the client side in IE.
Regard,
Muhammad Jamil Nawaz


Nov 19 '05 #2
The ValidationSummary control looks through the list of validators on the
page to see if any are marked IsValid. It does this in the Page's PreRender
stage, after you have run Page.Validate() or Validate() on individual
validators.

If you have setup your Click event method correctly, it will test
Page.IsValid (or IsValid on individual validators) and only save when these
IsValid properties are true. If they are false, the page will continue to
output, showing all of the validators and the ValidationSummary.

FYI: My Professional Validation And More
(http://www.peterblum.com/vam/home.aspx), a replacement for Microsoft's
validators, supports client-side validation on many browsers including
FireFox, Opera 7, and Safari. It was designed to fix the limitations of
Microsoft's validators and help you avoid all of the custom coding and
hacks. It includes a utility to quickly convert pages to its validators.

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

"msnews.microsoft.com" <ja*******@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
Hi All,

I m facing a problem. As u know asp.net vallidators did not work in
non-microsoft browsers.
So for that i m using Server Side Solution. But i don't understand how can i
show the validation summery with all messeges as they show on client side in
IE.
Means that when we submit the form to server in IE, then page is validated
on the client side and if there is some error these are shown in the
Validation Summery as a list.
This thing i want to do in Non-Microsoft Browsers. Means when i validate the
page on the server. Then i want to show all error messeges in validation
summery as on the client side in IE.

Regard,
Muhammad Jamil Nawaz
Nov 19 '05 #3

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

Similar topics

6
by: Hernán Castelo | last post by:
should i to validate all the "Request"s calls like Request.FORM("...") and Request.Cookies("...") ???? if it is so, i have to see inside every "Input" elements like "Text" and even "Hidden"...
4
by: Adrienne | last post by:
I am the first to admit that I know bupkis about javascript, except that sometimes I need it to do something client side that I can't do server side. Anyway, here's my problem: <input...
3
by: Navin | last post by:
Hello friends... On a single asp.net web page i have a single server-side form that contains a couple of user-controls. Each user control has its own functionality and contains server-side textbox...
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)...
4
by: usl2222 | last post by:
Hi folks, I appreciate any assistance in the following problem: I have a form with a bunch of dynamic controls on it. All the controls are dynamically generated on a server, including all...
5
by: raagz | last post by:
Hi, I am using the .NET validation controls for validating . The validation works fine with IE but none of them work with Netscape 6 browser. Do i have to configure something in vS.NET to...
6
by: serge calderara | last post by:
Dear all, I have read that ASP.NET does double user input validation of control when they are place on the page. Once on teh client side and again from server side right ? Could explain how...
2
by: Chad Lupkes | last post by:
Hi everyone, I need help with a simple form validation. The form I'm using has been the target of some spammers, and I'm wondering what else I can do. I have a very simple validation, checking...
19
by: Ganesh J. Acharya | last post by:
Hi there, I want to redesign my website and make that look professional. I made this about 6 years ago with very little knowledge of internet. Today I am getting about 4000 visitors a day for...
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
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
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
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
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.