注册 登录
编程论坛 ASP.NET技术论坛

求助:页面跳转问题

yunj1105 发布于 2007-04-21 15:27, 655 次点击
Note.aspx
protected void Button1_Click(object sender, EventArgs e)
{
string str = "<script language='javascript' defer>ret=window.showModalDialog('Note_Add.aspx?Action=add',window,'dialogHeight:320px;dialogWidth:600px;center:yes;Help:No;Resizable:No;Scroll:auto;Status:No;');</script>";
Response.Write(str);
}
Note_Add.aspx//当执行这个程序时就又跳出一个同样的页面,原来那个还在,这样的问题怎么解决啊?
protected void Button1_Click(object sender, EventArgs e)
{
string str_note = "insert into lab_note (note_name,note_content,note_date) values ('"+TextBox1.Text+"','"+TextBox2.Text+"','"+DateTime.Now+"')";
Comm1 co_note = new Comm1();
co_note.ENQ(str_note);
Response.Write("<script defer>alert('添加成功!');</script>");
}
3 回复
#2
人妖1232007-04-21 16:45
function OpenDownload(OID)
{
window.open("********,"_blank","width=400,height=70");
}
</script>
#3
djx5202007-04-28 14:57
Response.Resdirt("aaa.aspx");
#4
cyyu_ryh2007-04-28 15:26
2楼的****处差""
1