0 évaluation0% ont trouvé ce document utile (0 vote)
7 vues2 pages
Internal partial class _Default : System.Web.UI.Page. If querystring parameter "MODE" is set to "IFRAME" / / then just display file upload panel (pnlFileUpload) and hide everything else. When upload button is clicked, save the filename to the session.
Internal partial class _Default : System.Web.UI.Page. If querystring parameter "MODE" is set to "IFRAME" / / then just display file upload panel (pnlFileUpload) and hide everything else. When upload button is clicked, save the filename to the session.
Droits d'auteur :
Attribution Non-Commercial (BY-NC)
Formats disponibles
Téléchargez comme TXT, PDF, TXT ou lisez en ligne sur Scribd
Internal partial class _Default : System.Web.UI.Page. If querystring parameter "MODE" is set to "IFRAME" / / then just display file upload panel (pnlFileUpload) and hide everything else. When upload button is clicked, save the filename to the session.
Droits d'auteur :
Attribution Non-Commercial (BY-NC)
Formats disponibles
Téléchargez comme TXT, PDF, TXT ou lisez en ligne sur Scribd
{ // when upload button is clicked, save the filename to the session if (! fileTestUpload.HasFile) { return; } ArrayList filesArray = null; // create new arrayList for storing filenames if it does not already exist if (Session["UploadedDocumentsList"] == null) { filesArray = new ArrayList(); } else { filesArray = (ArrayList)(Session["UploadedDocumentsList"]); } filesArray.Add(fileTestUpload.FileName); Session["UploadedDocumentsList"] = filesArray; // the following code triggers upload completion event in client side ClientScript.RegisterStartupScript(Page.GetType(), "Upload Completed", "window.parent.iFrame_OnUploadComplete();", true); }