By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,677 Members | 1,890 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,677 IT Pros & Developers. It's quick & easy.

"Loading Window" page

P: n/a
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
Jan 23 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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...
}
"dana lees" <da***@idc.ac.il> wrote in message
news:Ov**************@TK2MSFTNGP10.phx.gbl...
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

Jan 23 '06 #2

P: n/a
Thanks,

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

Dana

"Mark Newmister" <mn********@iwanttss.com> wrote in message
news:OY*************@TK2MSFTNGP12.phx.gbl...
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...
}
"dana lees" <da***@idc.ac.il> wrote in message
news:Ov**************@TK2MSFTNGP10.phx.gbl...
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


Jan 23 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.