string path = Server.MapPath("furniture_main/" + TxtFolderName.Text.ToString()); if (Directory.Exists(path)) LblError.Text = "FOlder is exists!"; else try { Directory.CreateDirectory(path); #region Save_Folder_Path_And_Name string strmain = "usp_create_main_Folder"; SqlParameter[] ins_param ={ new SqlParameter("@FolderName",TxtFolderName.Text.Trim()), new SqlParameter("@FolderPath",path) }; int result = DU.executeprocedure(strmain, ins_param); if (result > 0) { LblError.Text = "Folder Create!"; } #endregion } catch { LblError.Text = "Error: on directory creation!"; }
Quote: HttpContext.Current.Request.Url.AbsoluteUri
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)