A
Amar
I have set the file size limit to 50 MB in the
Machine.config file on the websever. whenever a user tries
to upload a file which has size > 50 MB, then my
application quits showing a DNS error page.
With some help from this forum, i have been able to trap
this error of file size limit in the Application_Error()
event. But when i try to redirect the program to the error
page, it does not work. I have tried using, Response.Write
("errorpage.aspx"), Server.Execute("errorpage.aspx")and
Server.Transfer("errorpage.aspx") one at a time. (No error
is thrown on any of these methods)
None work and asp.net still shows me the DNS error page.
Is there a way to stop asp.net from displaying this page
and enforce it to display my error page.
Please help! Thanks in Advance.
Machine.config file on the websever. whenever a user tries
to upload a file which has size > 50 MB, then my
application quits showing a DNS error page.
With some help from this forum, i have been able to trap
this error of file size limit in the Application_Error()
event. But when i try to redirect the program to the error
page, it does not work. I have tried using, Response.Write
("errorpage.aspx"), Server.Execute("errorpage.aspx")and
Server.Transfer("errorpage.aspx") one at a time. (No error
is thrown on any of these methods)
None work and asp.net still shows me the DNS error page.
Is there a way to stop asp.net from displaying this page
and enforce it to display my error page.
Please help! Thanks in Advance.