protected void AjaxFileUploadMultiple_UploadCompleteAll(object sender, AjaxControlToolkit.AjaxFileUploadCompleteAllEventArgs e)
    {
        Dictionary <string, byte[]> file_Upload_Array = new Dictionary <string, byte[]>();
        //string strUploadPath = "~/K_Log/" + Request.UrlReferrer.Query.Split(new char[]{'='})[1].ToString() + "/";
        string strUploadPath = "~/K_Log/" + Session["Folder_Name1"].ToString() + "/";

        string[] _files = Directory.GetFiles(Server.MapPath(strUploadPath));
        if (_files != null && _files.Length > 0)
        {
            for (int i = 0; i < _files.Length; i++)
            {
                FileInfo fl = new FileInfo(_files[i]);
                file_Upload_Array.Add(fl.Name, File.ReadAllBytes(fl.FullName));
            }
        }
        Session["FileUpload1"] = file_Upload_Array;
        AllClasses.Create_Directory_Session1();
    }
Exemple #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["Person_Id"] == null || Session["Login_Id"] == null)
        {
            Response.Redirect("Index.aspx");
        }
        if (!IsPostBack)
        {
            AllClasses.Create_Directory_Session1();
            AllClasses.Create_Directory_Session2();
            fill_Category();
            fill_Studio();
            get_Genere();
            get_Starring("S", lbStarring);
            get_Starring("D", lbDirector);
            get_Starring("A", lbSupportingActor);


            if (Request.QueryString.Count > 0)
            {
                load_Album_Details();
            }
        }
    }