protected void Button2_Click(object sender, EventArgs e)
    {
        if (TextBox1.Text != "" && TextBox2.Text != "")
        {
            int tagID = Convert.ToInt32(ListBox1.SelectedItem.Value);
            if (tagID != 0)
            {
                ArticleManager.AddArticle(TextBox1.Text, TextBox2.Text, CheckBox1.Checked, CheckBox2.Checked, tagID);
     ??在此处怎样添加一个提示成功的弹出框                Response.Redirect("~/User/ArticlePage.aspx");
            }
        }
}

解决方案 »

  1.   

     ??在此处怎样添加一个提示成功的弹出框  response.write("<script>alert('OK!');</script>")
      

  2.   

    protected void Button2_Click(object sender, EventArgs e)
        {
            if (TextBox1.Text != "" && TextBox2.Text != "")
            {
                int tagID = Convert.ToInt32(ListBox1.SelectedItem.Value);
                if (tagID != 0)
                {
                    ArticleManager.AddArticle(TextBox1.Text, TextBox2.Text, CheckBox1.Checked, CheckBox2.Checked, tagID);
        Response.Write("<script>alert('成功');location.href='/User/ArticlePage.aspx';</script>");
                }
            }
    }