Download after the page loaded!
-
How to open the "save as" dialog box to download a file automatically after the page has loaded? Anyone knows please help! Thanks Zeke
Use RegisterStartupScript to add a script block that fires a URL to the file. Just look up RegisterStartupScript in the help :-D
-
Use RegisterStartupScript to add a script block that fires a URL to the file. Just look up RegisterStartupScript in the help :-D
-
How to open the "save as" dialog box to download a file automatically after the page has loaded? Anyone knows please help! Thanks Zeke
The most common way that most web sites use is to include the following in your page header:
<meta http-equiv="refresh" content="5;url=path/to/download.file">
where 5 is the number of seconds before downloading begins. Don't forget the value of viewing web sites' source to figure out how they do things.
-----BEGIN GEEK CODE BLOCK----- Version: 3.21 GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++ -----END GEEK CODE BLOCK-----