protected void DoSave(object sender, ImageClickEventArgs e)
    {
        try
        {
            int ReturnCode = SaveControls("~/Main/Default.aspx?BaseID=" + BaseID);
            if (NewMode && ReturnCode != -1)
            {
                NewMode = false;
                Code    = ReturnCode;
                ShowDetails();
            }

            BOLMultiMedias MultiMediasBOL = new BOLMultiMedias();
            MultiMedias    CurMultiMedia  = MultiMediasBOL.GetDetails((int)Code);

            if (uplLargePicFile.UploadedFiles.Count > 0 || string.IsNullOrEmpty(CurMultiMedia.PicFile))
            {
                Guid   newGd        = Guid.NewGuid();
                string RandSmallPic = newGd.ToString().Replace("-", "") + ".jpg";

                DateTime thisTime = DateTime.Now;
                string   UplPath  = "~/Files/MultiMedias/";

                SavePic(CurMultiMedia.LargePicFile, RandSmallPic, HttpContext.Current.Request.MapPath(UplPath), 220);
                MultiMediasBOL.ChangeSmallPic(ReturnCode, UplPath + "/" + RandSmallPic);
            }
        }
        catch
        {
        }
    }