ASP.NET validation controls not working on remote server + event handler

  • Thread starter Thread starter Keith Free Ellis
  • Start date Start date
K

Keith Free Ellis

I'm having a problem with an asp.net web app after uploading to the
remote server. It seems that most of the button event handlers are not
firing. This occurs mostly in the form pages for editing info. The
initial data get binded correctly (for an update) but when you click
save, nothing happens. Has anyone seen anything like this?

To confuse the situation a bit more, I have uploaded this solution to
another host account w/ the same company and things perform perfectly.
I'm thinking maybe the server is somehow caching an old copy of the
assembly???

I'm not sure but I need some help!!!

Thanks
 
hi keith,

I think you should check if asp.net client scripts installed to the remote
server.You can use this command tool on the server

aspnet_regiis.exe -c

this file is in C:\WINNT\Microsoft.NET\Framework\v1.1.4322 directory.
 
Hi Keith,

Since you mentioned that the Buttons' click event can't work well, is the
problem occur on those page with validation controls or event a simple page
also suffer this problem? As Ersin has mentioned that the
"aspnet_regiis -c" can help register the asp.net 's clientside scripts on
the serve machine.

But as for your situation, the webserver is a remote host server, we can't
directly do it ourselve. I'm afraid you'd better contact the web host
provider to see whether they can have a check on the server or your web
folder's setting. Do you think so?


Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
 
I ended up calling the host today to figure it out. It turns out that the WebUIValidation.js file was at fault. I guess there was a problem w/ one version of this file and it was updated. The problem file is 14.0kb and the updated one that fixes this is 14.1kb. It seemed strange since there I dont think there has been a service patch for aspv1.1 or vs.net 2003.

If someone could provide more details about this, it would be greatly appreciated. It was fairly obvious once I realized the events only didn't fire on forms w/ validation controls. Odder was that even buttons where CausesValidation=false also didn't fire.

Thanks!
 
Hi Keith,

Thanks for your followup. I'm glad that the problem have been resolved. As
for the WebUIValidation.js you mentioned, it contains the client side
scripts that required by the ASP.NET validation controls to perform
clientside validation. It can be installed on the server machine using the
aspnet_regiis.exe with "-c" command option
#ASP.NET IIS Registration Tool (Aspnet_regiis.exe)
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/htm
l/cpgrfASPNETIISRegistrationToolAspnet_regiisexe.asp

And such client resouces file is installed for each website in IIS and
sometimes the file may be corrupted so that the validation controls won't
work well and event cause the page occur strange behavior. And here is
another tech article which discussing the detailed info on the asp.ne
valication control:

#ASP.NET Validation in Depth
http://msdn.microsoft.com/library/en-us/dnaspp/html/aspplusvalid.asp?frame=t
rue

Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
 
Back
Top