protected void TreeView1_SelectedNodeChanged(object sender, EventArgs e)
{
string strValue = this.TreeView1.SelectedValue;
Response.Write(@"<script type='text/javascript'>");
switch(strValue)
{
case "NtcAdd":
Response.Write(@"top.window.frames('iframe4').location='ntcAddWeb.aspx';");
break;
case "NtcMag":
Response.Write(@"top.window.frames('iframe4').location='NtcMagWeb.aspx';");
break;
case "ReviewRes":
Response.Write(@"top.window.frames('iframe4').location='ReviewResWeb.aspx';");
break;
case "SetRes":
Response.Write(@"top.window.frames('iframe4').location='SetResWeb.aspx';");
break;
case "DocmMag":
Response.Write(@"top.window.frames('iframe4').location='DocmMagWeb.aspx';");
break;
}
Response.Write(@"</script>");
}
这个程序可以实现把网页传入iframe4,其中TreeView1专门做了网页传入iframe3中,但是我想
选择导航条中的某值时,跳出新的网页,试了好多中方法,都没有成功,望指点一下