Validations not working ASP.Net

I have uploaded my project to my webserver

My validations both client side and server side are not working on the webserver.

I am getting this error "page_validators is undefined'.
here main folder is a virtual folder which contains my project.

I think it is something to do with web server side. do they need to enable or include some file?

But they do work on my local system.

I also tried using a simple project with just a text box, a required field validator and submit button.the validations still does not work. I am just able to submit the form with out checking for errors. it does not stop me from submitting.everything works on my local server but not on the web server.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

may be the problem is in your code behind
Can you post the code ?

is the .NET Framework installed on the Web Server?
go to the server and run
C:\WINDOWS\Microsoft.NET\Framework\vn.n.nnnn>aspnet_regiis.exe -c

which vn.n.nnnn is the .NET framework version that you use on the server.

It will install client side script for you.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
OWASP Proactive Controls

Learn the most important control and control categories that every architect and developer should include in their projects.

nishikanthAuthor Commented:

I asked my webserver to do the changes. But I got a reply from them saying that the validations and error msg box only work in IE. not in netscape,mozilla etc....

Should we do anything to show the msg nox in other browsers. The site does not have any special coding but only requiredfieldvalidatiors and simple validations. Also the tables and text box are not rendered properly???

That may in fact be the case (where the Validation controls are applicable), though I was not aware of any such restriction.  You might want to check the Microsoft Knowledge base on this.

nishikanthAuthor Commented:
hi testn,

                I tried out your suggestion... my validations work in IE. But it does not work in netscape. no msg box is displaed for the error. but the msg is show in the label after the page refreshes... also my tables, textboxes are not rendered properly.. they are of uneven sizes... what is to be done to make it work in Netscape..
as you have already found out, Validators do not work on Browsers other than IE.  I am also not surprised that other things do not render properly in Netscape, which may expalin why Netscape is not a very popular Browser.

I personally avoid Netscape like the plague, and advise everyone else to do likewise.

actually the validation will work either in ie or in netscape. however, only ie has the functionality to validate data on the clientside. aspx code on netscape will perform only server validation only. that's why the validation is kinda different.

to make it work properly, you have to check for Page.IsValid before performing any operation that requires validation in codebehind.
Concerning client-side scripting -

If you don't have the permissions to run aspnet_regiis.exe (as in the case of a shared hosting environment), you can force the client-side validation scipts to use a specific version of the Framework by placing the following tag in the <system.web> section of the web.config file :

<webControls clientScriptsLocation="/aspnet_client/system_web/1_1_4322_0/" />

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.