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 2 2064
This is how I'm doing it...by registering a startup script that executes a
form submit after loading the page:
if (!this.IsPostBa ck)
{
lblMessage.Text = "Loading document - please wait...";
ClientScriptMan ager cs = Page.ClientScri pt;
cs.RegisterStar tupScript(this. GetType(), "", "form1.submit() ;", true);
}
else
{
..code for downloading document here...
}
"dana lees" <da***@idc.ac.i l> wrote in message
news:Ov******** ******@TK2MSFTN GP10.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
Thanks,
I made a mistake... It's an asp application that uses javascipt.
It's not an asp.net application.
Dana
"Mark Newmister" <mn********@iwa nttss.com> wrote in message
news:OY******** *****@TK2MSFTNG P12.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.IsPostBa ck) { lblMessage.Text = "Loading document - please wait..."; ClientScriptMan ager cs = Page.ClientScri pt; cs.RegisterStar tupScript(this. GetType(), "", "form1.submit() ;", true); } else { ..code for downloading document here... }
"dana lees" <da***@idc.ac.i l> wrote in message news:Ov******** ******@TK2MSFTN GP10.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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Andrew Hoi |
last post by:
Hi,
I have a web site that use META tag like below :
<META content=blendTrans(Duration=1.0) http-equiv=Page-Enter>
<META content=blendTrans(Duration=1.0) http-equiv=Page-Exit>
it work properly when start IE and browse in the same window,
Howeve , if press the SHIFT key and click(or right click with select "open
in new window) it to open in a new window, this effect not properly ?
|
by: JohnEGee |
last post by:
Hello, all, and TIA for any help you can offer. I've searched the
Internet for answers and have finally come here.
I've created a page (several, actually) with a link that opens a pop-up
window. It's a pop-up window in the sense that it's smaller than the
man page and is intended to be viewed and then closed.
The problem is that if I include a link on that pop-up window HTML
page, when the link is clicked the new page opens IN the...
|
by: Stimp |
last post by:
I have two dropdowns that take a few seconds to populate (they are
populated from a remote database, but the connection to the database is
not the best).
Is it possible to put a 'Loading...' message into the dropdownlist which
will show by default, and then will disappear when the dropdown is
populated?
Maybe this could be done through javascript or otherwise?
|
by: Kevin Frey |
last post by:
We have a web application that, for the purposes of reporting, launches a
new window to display the contents of the report in (PDF format). This is
implemented using a custom IHttpHandler implementation in our project.
The report is launched by a standard hyperlink with a target="blank" to
force the new window.
The one problem I have noticed is that if the user leaves the "launcher"
page open a long time, the web server will invariably...
|
by: lindanr |
last post by:
In ASP.NET 2005 I have an onblur="window.close()" javascript event in the
<body> tag. When I click on the window's scrollbar, the window closes. The
same code works fine in ASP.NET 2003.
Any ideas?
| |
by: brianflannery |
last post by:
Greetings! My situation is this. I currently have a database of
which in a form displays jpeg pictures (one at a time) which are
linked to the db and stored in a separate folder. I have set up a
report with an image control do display/print 4 pictures on a page.
When the report opens (in preview mode) the "loading image" dialog
flashes 4 times (once for each picture) which isn't a huge deal, but
is annoying.
There have been several...
|
by: =?Utf-8?B?Z2VvZmZh?= |
last post by:
I cannot figure this out and would appreciate any help.....
I have a datagrid view that displays the results from a Stored Procedure.
it can take awhile to load.....
the stored procedure fires when a Calendar is clicked. ( a date is part of
the stored procedure ) How can i just show a new page or a pop-up that says
"please wait" until the stored procedure has run and gotten all the data and
the page is completely loaded? In all the...
|
by: Jeremy J Starcher |
last post by:
While reading c.l.j, I've noticed that some people prefer and indeed even
recommend the use of "window.alert()" over "alert()".
I can't find any technical reason to make this distinction, and seems to
have a (tiny) amount overhead since window itself points to the global
object, hence, a circular reference.
(From everything I am reading, window is just a REFERENCE back to the
global object, as opposed to a separate object.)
|
by: saurabhsingh |
last post by:
Can anyone plz suggest any Idea that How to implement "loading message" in a site with master pages.
I am having Default page which is master page enabled and it contains many Gridviews with database connection.
This page is taking so much of time to load therefore I want to show loading message for this page only.
Thanks in advance..
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |