"Loading Window" page

D

dana lees

Hi,

I am developing a c# asp.net application.

I have a button which when i click on i open a pdf file. Since the pdf file
is very very large i would like to open a window that says "Loading file..."
and when the file is loaded, it will be loaded on the same page.

How can i do that?

Thanks,
Dana
 
M

Mark Newmister

This is how I'm doing it...by registering a startup script that executes a
form submit after loading the page:

if (!this.IsPostBack)
{
lblMessage.Text = "Loading document - please wait...";
ClientScriptManager cs = Page.ClientScript;
cs.RegisterStartupScript(this.GetType(), "", "form1.submit();", true);
}
else
{
..code for downloading document here...
}
 
D

dana lees

Thanks,

I made a mistake... It's an asp application that uses javascipt.
It's not an asp.net application.

Dana
 

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

Top