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");
}
}
}
解决方案 »
- <input type=button>触发<input type=file>的click事件后 ,点击保存, 为什么先清空input,而导致上传的文件为空?
- 在线身份核查
- 如何获取gridview中的div
- 在服务器端代码中如何实现用户交互
- 急求一个美观的FLASH+XML+JS,在线,解决马上结贴
- 请问Repeater中的HeaderTemplate为什么不能输出值?
- 我用VS2005里面的那个Server Explorer中创建的数据库如何导入SQL2000中?
- 高分!datagrid导出EXCEL"后"出现的问题.
- 将照片从数据库中取出,并显示到Image控件中,若当中不用文件作为临时存储行不行??
- DevExpress.XtraEditors.XtraForm的问题
- 请教高手一个.NET界面的问题
- 如何设置Cookes的生命周期
{
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>");
}
}
}