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

validators work on localhost, but not on production server

I have a project with several validators (CompareValidators and
RangeValidators). When running the application on localhost, the
validators work correctly: the page is checked locally and errors are
reported before the page submits. Once the app is deployed, the page
submits, and the errors are displayed only after the form is
(incorrectly) processed.

Any ideas what might be causing this discrepancy?

Thanks,
Mark
Jul 24 '06 #1
2 1361
Hi Mark,

Are you running ASP.NET 1.1? If so, the client scripts may not be
registered on the server so you're only getting server-side validation.

Try this:

Aspnet_regiis.exe -c

http://msdn.microsoft.com/library/de..._regiisexe.asp

Let us know?

Ken
Microsoft MVP [ASP.NET]
"Mark Abbott" <ma*****@newsgroups.nospamwrote in message
news:uQ**************@TK2MSFTNGP05.phx.gbl...
>I have a project with several validators (CompareValidators and
RangeValidators). When running the application on localhost, the
validators work correctly: the page is checked locally and errors are
reported before the page submits. Once the app is deployed, the page
submits, and the errors are displayed only after the form is (incorrectly)
processed.

Any ideas what might be causing this discrepancy?

Thanks,
Mark

Jul 24 '06 #2
Yes, that worked. Thanks!

-- Mark
Ken Cox [Microsoft MVP] wrote:
Hi Mark,

Are you running ASP.NET 1.1? If so, the client scripts may not be
registered on the server so you're only getting server-side validation.

Try this:

Aspnet_regiis.exe -c

http://msdn.microsoft.com/library/de..._regiisexe.asp

Let us know?

Ken
Microsoft MVP [ASP.NET]
"Mark Abbott" <ma*****@newsgroups.nospamwrote in message
news:uQ**************@TK2MSFTNGP05.phx.gbl...
>I have a project with several validators (CompareValidators and
RangeValidators). When running the application on localhost, the
validators work correctly: the page is checked locally and errors are
reported before the page submits. Once the app is deployed, the page
submits, and the errors are displayed only after the form is (incorrectly)
processed.

Any ideas what might be causing this discrepancy?

Thanks,
Mark

Jul 24 '06 #3

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

Similar topics

1
by: Mike D | last post by:
Hi, I have a form that has a number of validator controls. Everything works fine in my development environment. When I move the application to my production server, all validator controls...
3
by: Mike | last post by:
I have a simple flash file that plays within a webform of an asp.net app. When running from the server the flash file works fine. But when I run it from my localhost the flash file simply doesn't...
3
by: rgparkins | last post by:
Hi I am currently having problems with Validators in a user control. I am creating a wizard sign-up process which have the allocated step (hyperlinks" at the top of the page. A user can also...
5
by: Howard | last post by:
I develop my website locally with VS 2005. the problem is all the links are broken because the directories don't match. on my production server it's www.myname.com/ but on my local server it's...
2
by: Mark Abbott | last post by:
For several Validators on different pages in my app, they work fine on my dev box (localhost) but not when the app is deployed to production. How can I troubleshoot this? For example, one page...
8
by: ShaneFowlkes | last post by:
For some reason, my validator controls stopped working when a form posts. They seems to work on fields that lose focus but if I submit a form with all empty fields, not of the required validators...
4
by: Ben | last post by:
Hello I recently used VS.NET 2003's Copy Project to create a "release' version of my asp.net app. On the same machine where the development has occured, I loaded the app and all worked fine. I...
7
by: Altemir | last post by:
SOME BACKGROUND: I am new to ASP.NET, but somehow managed to install a perfectly working ..aspx page on our production server that I compiled in Visual Studio. However, I recently needed to...
2
by: Jordan S. | last post by:
I'm experimenting with dynamically inserting custom composite Web server controls onto a page. For testing purposes I have two custom composite Web server controls that each have a couple of...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.