validators work on localhost, but not on production server

M

Mark Abbott

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
 
M

Mark Abbott

Yes, that worked. Thanks!

-- Mark

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/d...aspnetiisregistrationtoolaspnet_regiisexe.asp

Let us know?

Ken
Microsoft MVP [ASP.NET]


Mark Abbott said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,054
Latest member
LucyCarper

Latest Threads

Top