Ejemplo n.º 1
0
 protected void btnAddTab2_Click(object sender, EventArgs e)
 {
     if (string.IsNullOrEmpty(txtNewDirNameTab2.Text) == true)
     {
         lblMsg.Text = "Please enter a directory name";
         return;
     }
     if (string.IsNullOrEmpty(txtNewDirLevelTab2.Text) == true)
     {
         lblMsg.Text = "Please enter a directory level";
         return;
     }
     objMgr.InsertDirectoryList(txtNewDirNameTab2.Text.Trim(),
                                txtNewDirLevelTab2.Text.Trim(),
                                Session["USERID"].ToString().Trim(),
                                Common.SetDateTime(DateTime.Now.ToString()));
     txtNewDirNameTab2.Text  = "";
     txtNewDirLevelTab2.Text = "";
     lblMsg.Text             = "Directory created successfully";
     this.GetDirectory();
     TabContainer1.ActiveTabIndex = 2;
 }