Пример #1
0
 protected void btnAddKeyword_Click(object sender, EventArgs e)
 {
     //create the keyword(s)
     if (txtTitle.Text != string.Empty)
     {
         db.CreateKeyword(txtTitle.Text, txtKeyword.Text);
         txtKeyword.Text = string.Empty;
         txtKeyword.Focus();
     }
     else
     {
         ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('Please enter your blog title first!')", true);
     }
 }