예제 #1
0
 protected void btnAddTags_Click(object sender, EventArgs e)
 {
     try
     {
         tags = new TagsBLL();
         string[] lsttags = txttagsname.Text.Split(',');
         int      i       = 0;
         while (i < lsttags.Length)
         {
             if (CheckExistTagsName(lsttags[i]))
             {
                 tags.newTagsName(lsttags[i]);
             }
             i++;
         }
         this.load_cbltags();
         string script = "window.onload = function() { calltagspanelClickEvent(); };";
         ClientScript.RegisterStartupScript(this.GetType(), "calltagspanelClickEvent", script, true);
     }
     catch (Exception ex)
     {
         this.AlertPageValid(true, ex.ToString(), alertPageValid, lblPageValid);
     }
 }