469,317 Members | 1,966 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,317 developers. It's quick & easy.

Error page using the Application_Error void dosnt work when using DIV for a please wait message

This is a realy tricky one.
I have an ASP.NET application where some pages are reading data from a
DB and presenting reports.
In order for the user to wait while the page is reading data from the
DB I am using a DIV with a please wait message which is removed once
the page is loaded.
In addition I am using a global error handling using the
Application_Error void in the Global.asax file.
when the application is loading a page which dosnt have the please wait
div and an error occurs the Application_Error void is used to execute
the code in it, but when a page which dose use the please wait DIV then
i get a standart error message "An unhandled exception occurred during
the execution of the current web request..."
Here is code used to display the please wait DIV:

private void Page_Load(object sender, System.EventArgs e)
id='mydiv' align='center' style='color:red ; font-size:28pt'>");
Response.Write("Loading - Please Wait... <BR>");
Response.Write("<IMG src='../Images/progressbar.gif'>");
Response.Write("<script language=javascript>;");
Response.Write("function HideWait(){");
Response.Write("mydiv.style.visibility =
....my code is here
Anyone has any idea why dosnt my application go to the
Application_Error void when i am using the DIV to display the please
wait message?

Jul 21 '05 #1
0 1702

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by John Lau | last post: by
6 posts views Thread by dee | last post: by
2 posts views Thread by tshad | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.