Home All Groups Group Topic Archive Search About

Page is not submitted using Client side validation of.NET validato

Author
1 Jul 2005 5:49 AM
Sudip
Hello
I want my .aspx page to have client side validation when using required
field/custom validator. It works fine in may http://localhost/... ; When i
uploaded the project in a web server then the validator works fine but page
does not submit when the validation is successful. I tried it with
EnableClientScript="False" and using Page.IsValid= True. But my client demand
only client side validation. Using javascript is too tedious for my project
at this final stage. So I need  your help on this problem and i also seek for
the specific process if any to upload asp.net project in web server(web
site). This is very urgent.
Thank you
Sudip

Author
1 Jul 2005 2:51 PM
Peter Blum
There are two setup problems users run into when they move to a new server.
See this thread for directions: http://forums.asp.net/739537/ShowPost.aspx

Regarding a requirement for client-side validation, even if your client
wants only client-side validation, you should always handle validation on
the server side too. By testing Page.IsValid=true, you have done this. The
reason is that client-side validation was written for DHTML browsers (IE and
IE/Mac). It is not active on Mozilla, FireFox, Netscape, Opera, or Safari.
Even IE may have javascript disabled. So the server side validation is your
defense.

I have written an extensive improvement for ASP.NET validators called
Professional Validation And More (http://www.peterblum.com/vam/home.aspx).
Its 25 validators support client-side validation on DHTML and DOM browsers
(IE, IE/Mac, Mozilla, FireFox, Netscape, Opera 7 and Safari). It comes with
a program to quickly convert a page from Microsoft's validators to mine.

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

Show quoteHide quote
"Sudip" <Su***@discussions.microsoft.com> wrote in message
news:9D3F6330-1CE9-4CFF-8405-803710CE958A@microsoft.com...
> Hello
> I want my .aspx page to have client side validation when using required
> field/custom validator. It works fine in may http://localhost/... ; When i
> uploaded the project in a web server then the validator works fine but
> page
> does not submit when the validation is successful. I tried it with
> EnableClientScript="False" and using Page.IsValid= True. But my client
> demand
> only client side validation. Using javascript is too tedious for my
> project
> at this final stage. So I need  your help on this problem and i also seek
> for
> the specific process if any to upload asp.net project in web server(web
> site). This is very urgent.
> Thank you
> Sudip
>