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

ASP.NET validation

Hello,

I would like to know whether there is a way to validate an ASP.NET page
prior to it being processed by the server. Basically, I am assuming that
there is an ASP.NET standard (possibly an open one) somewhere out there
which specifies ASP.NET as an XML application. So I thought there would
be a free validation service somewhere on the web just as there is for
other XML applications. If anyone knows of such a validator or whether
an open standard for ASP.NET indeed exists then please let me know.

Thank you for your replies,

Neil
Nov 19 '05 #1
6 1363
there are validation controls that come with Visual Studio, these create
client side script to validate form data before it is sent to the server.

B Comrie
http://www.codewidets.com

"Neil Zanella" <nz******@cs.mun.ca> wrote in message
news:b6**************************@posting.google.c om...
Hello,

I would like to know whether there is a way to validate an ASP.NET page
prior to it being processed by the server. Basically, I am assuming that
there is an ASP.NET standard (possibly an open one) somewhere out there
which specifies ASP.NET as an XML application. So I thought there would
be a free validation service somewhere on the web just as there is for
other XML applications. If anyone knows of such a validator or whether
an open standard for ASP.NET indeed exists then please let me know.

Thank you for your replies,

Neil

Nov 19 '05 #2
I guess there is no other way to validate ASP.NET code than to use
Visual Studio. I have been using Web Matrix but I am rather annoyed
at the fact that whenever I open a hand coded .aspx file in Web Matrix
it reformats all of my code. Is there a way to avoid this, or an IDE or
user interface which has validating service for ASP.NET but does
not modify all the indents and all in your code?

Thanks,

Neil

Nov 19 '05 #3
Neil,

There is some confusion here. You can use any ASP.NET web control you want
in WebMatrix. All of the Validators should already be in its toolbox, ready
to use. They provide client-side validation using javascript. They have many
limitations, such as their scripts were written for DHTML browsers (IE and
IE/Mac). All other browsers will still use their server-side validation
features.
I wrote a far better solution to validation: "Professional Validation And
More" (http://www.peterblum.com/vam/home.aspx). It includes so many more
rules (22 validators vs 5 in Microsofts) and ways to get the user's
attention (like changing the color of the field with the error). It's
client-side validation works on IE, IE/Mac, Netscape 7+, Mozilla, FireFox,
Opera 7, and Safari. I designed it to address the requests users have of the
existing validators that force them to write custom code and invent hacks.

As for the reformatting issue of Visual Studio.net:
1. You can stay with WebMatrix although I recommend for writing actual code,
VS.NET's compiler and debugger are essential tools for real code
development.
2. Microsoft heard our complaints about its reformatting issues and will no
longer do that in VS.NET 2005 (coming later this year).

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

<nz******@cs.mun.ca> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.com...
I guess there is no other way to validate ASP.NET code than to use
Visual Studio. I have been using Web Matrix but I am rather annoyed
at the fact that whenever I open a hand coded .aspx file in Web Matrix
it reformats all of my code. Is there a way to avoid this, or an IDE or
user interface which has validating service for ASP.NET but does
not modify all the indents and all in your code?

Thanks,

Neil

Nov 19 '05 #4
Thank you for your reply. It is nice to know that
the automatic formatting is going to be gone
in VS .NET 2005 although I'd still like to use
my text editor of choice (gvim from www.vim.org)
because you can code much faster with it once you
learn how to use it.

Anyways, I think there was some misunderstanding
in the replies I received with regards to what
I meant by "validation". When people write decent
web pages, they validate them by having a validator
program such as the one found at http://validator.w3.org/
download the page and ispect it for W3C HTML compliance.

My complaint with ASP.NET is that MS seems
to not care about open HTML standards and
even outputs garbage attributes tags from
its ASP controls in order to achieve dirty hacks.
I guess this is by far the single most annoying
thing about ASP.NET: lack of W3C compliance.

Regards,

Neil

Nov 19 '05 #5
Thank you for your reply. It is nice to know that
the automatic formatting is going to be gone
in VS .NET 2005 although I'd still like to use
my text editor of choice (gvim from www.vim.org)
because you can code much faster with it once you
learn how to use it.

Anyways, I think there was some misunderstanding
in the replies I received with regards to what
I meant by "validation". When people write decent
web pages, they validate them by having a validator
program such as the one found at http://validator.w3.org/
download the page and ispect it for W3C HTML compliance.

My complaint with ASP.NET is that MS seems
to not care about open HTML standards and
even outputs garbage attributes tags from
its ASP controls in order to achieve dirty hacks.
I guess this is by far the single most annoying
thing about ASP.NET: lack of W3C compliance.

Regards,

Neil

Nov 19 '05 #6
I'm glad that you corrected our confusion because there is more coming in
ASP.NET 2.0/VS.NET 2005: Standards compliant HTML generation. In fact, it
will be XHTML compliant. Please use the msdn.microsoft.com site to locate
various articles on "Whidbey" that discuss its extensive improvements.

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

<nz******@cs.mun.ca> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
Thank you for your reply. It is nice to know that
the automatic formatting is going to be gone
in VS .NET 2005 although I'd still like to use
my text editor of choice (gvim from www.vim.org)
because you can code much faster with it once you
learn how to use it.

Anyways, I think there was some misunderstanding
in the replies I received with regards to what
I meant by "validation". When people write decent
web pages, they validate them by having a validator
program such as the one found at http://validator.w3.org/
download the page and ispect it for W3C HTML compliance.

My complaint with ASP.NET is that MS seems
to not care about open HTML standards and
even outputs garbage attributes tags from
its ASP controls in order to achieve dirty hacks.
I guess this is by far the single most annoying
thing about ASP.NET: lack of W3C compliance.

Regards,

Neil

Nov 19 '05 #7

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

Similar topics

21
by: Stefan Richter | last post by:
Hi, after coding for days on stupid form validations - Like: strings (min / max length), numbers(min / max value), money(min / max value), postcodes(min / max value), telefon numbers, email...
2
by: wumingshi | last post by:
Hi, When validating an XML instance, sometimes the schema is not enough to expression the validation rules. Additional validation rules may be expressed in an application-specific way. For...
4
by: Tim Meagher | last post by:
I am trying to use both validation controls and to add submit button attributes, but when I add the button attributes, the javascript fpr the validation controls is no longer created for the page. ...
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
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. ...
5
by: Chris | last post by:
Based upon some prevoius postings on what to do for adding a 'add' row to a datagrid I utilize the footer to create the 'add' row. The only issue is that I have it sharing the 'UpDate_Command' and...
4
by: David Colliver | last post by:
Hi all, I am having a slight problem that hopefully, someone can help me fix. I have a form on a page. Many items on the form have validation controls attached. Also on this form are...
2
by: dustbort | last post by:
I recently had a problem where my required field validator stopped working. But, the page still posted back and tried to insert a record into the database without performing server-side validation....
6
by: Jon Paal | last post by:
validation doesn't fire what's missing ????? /////// ---- code -----/////////////////////////// Sub btnSubmit_Click(sender As Object, e As System.Web.UI.ImageClickEventArgs) 'Handles...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
1
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
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

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.