I'm creating web project (ASPNET, C#) for downloading files from web.
First I show the list of files (sorted by category), each file has button
to download. When user clicks on that button, modal IE window popups and
there I show the file details (name, source, target name & target
directory). I want the file download (WebClient.DownloadFile method) begin
after the page loading is complete. Problem is that the page is ASPX page
and all the codebehind executes on server side - when the page is loaded,
the file is downloaded.
Can someone help me
- how can I start download after the page is complete
- or how to use WebClient in <script>
Thanx
Karel Frajtak