public partial class title : System.Web.UI.Page
{
//public string str = "";
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button7_Click(object sender, EventArgs e)
{
//Response.Write("<script language='javascript'>window.parent.location='index.aspx';</script>");
}
protected void Button1_Click(object sender, EventArgs e)
{
//str = "kh";
//Button1.PostBackUrl = "index.aspx?strName=" + str ;
Response.Write("<script language='javascript'>window.top.frames(1).location='khleft.aspx';</script>");
}
protected void Button2_Click(object sender, EventArgs e)
{
Response.Write("<script language='javascript'>window.top.frames(1).location='pjleft.aspx';</script>");
}
protected void Button3_Click(object sender, EventArgs e)
{
Response.Write("<script language='javascript'>window.top.frames(1).location='jjleft.aspx';</script>");
}
再放一个Lable什么的控件.
把 Response.Write("<script language='javascript'>window.top.frames(1).location='khleft.aspx';</script>");
这样的代码改成
Lable1.Text = "<script language='javascript'>window.top.frames(1).location='khleft.aspx';</script>");
试试.
注意:在Page_Load()里面写上Lable1.Text = "";