Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Validations not working ASP.Net

Posted on 2003-12-10
Last Modified: 2013-11-25
I have uploaded my asp.net 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 asp.net 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.
Question by:nishikanth
  • 3
  • 2
  • 2
  • +2
LVL 28

Expert Comment

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

LVL 44

Expert Comment

ID: 9911666
is the .NET Framework installed on the Web Server?
LVL 18

Accepted Solution

testn earned 100 total points
ID: 9911833
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.
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.


Author Comment

ID: 9934682

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 asp.net text box are not rendered properly???

LVL 44

Expert Comment

ID: 9934794
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.


Author Comment

ID: 9989230
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..
LVL 44

Assisted Solution

Arthur_Wood earned 25 total points
ID: 9991841
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.

LVL 18

Expert Comment

ID: 10014552
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.

Expert Comment

ID: 11097931
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/" />


Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used.

766 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question