Basically the below is what i want to do in asp.net c#.
Steps
1.Upload the file in parent window.
2.Click "upload" button.
3.The child window pop up.
4.Upload progress running in child window.
5.File upload progress bar is shown in child window
The purpose of doing that is prevent the parent window from being frozen when uploading the file.
My question is, how can i pass the file from parent to child window in order to process it in child window? This is similar t开发者_StackOverflow社区o the video upload in facebook. Looking forward for your answer!! thanks!!
You do not have to pass the file from the parent to the child window. You just need a modal (client-side) dialog to display such that the user cannot modify the parent window while upload is in progress.
For starters, you can create a div
or a similar section in your HTML that handles the "progress" of the upload. It could be just a spinning wheel animation or a fully functional progress bar. Then, you can look at client-side scripting to display that progress. I would recommend using jQuery UI for this, the jQuery dialog in particular (look under "modal").
精彩评论