Tuesday, July 14, 2009

I m a .NET programmer and i want 2 change a default error mesaage. how can I do it in C#?

You mean for ASP.NET I presume. You can either define the URL of the custom error at the page level using the Page directive's ErrorPage attribute, and/or you can define it at the web application level in Web.Config, using the defaultRedirect attribute of the customErrors element.


No comments:

Post a Comment