页面间的跳转,打开,关闭小技巧.

1. 在框架页面中 点击左页面中的按钮,在右边页面中弹出页面。

protected void BtnPickingList_Click(object sender, EventArgs e)
        
{
            Response.Write(
"<script>window.top.mainfram.location='DeskWeb/PickingList.aspx';</script>");
        }

2. 在左页点超连接后跳转到右页面
 <a href="DeskWeb/BaseDOC/TypeSet.aspx" target="mainfram">类别管理</a>

3. 直接跳转
Response.Redirect("MaterialBaseChange.aspx");

4. 弹出对话框
 Page.ClientScript.RegisterStartupScript(this.GetType(), "abc", "<script>showModelessDialog('MaterialBaseChangeSearch.aspx','example05','dialogWidth:500px;dialogHeight:600px;dialogLeft:200px;dialogTop:150px;center:yes;help:yes;resizable:yes;status:yes');</script>");
 
5. 
Page.ClientScript.RegisterStartupScript(this.GetType(), "abc""<script>window.open('MaterialBaseChangeSearch.aspx','newwindow', 'height="+h+",width="+w+", toolbar=no,scrollbars=yes,menubar=no,resizable=yes,location=no, status=no,left=100,top=80');</script>");
6. 
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "abc""<script>window.open('MaterialBaseChangeSearch.aspx','newwindow', 'height=" + h + ",width=" + w + ", toolbar=no,scrollbars=yes,menubar=no,resizable=yes,location=no, status=no,left=100,top=80');</script>");
7.           
 Response.Write("<script>window.open('MaterialBaseChangeSearch.aspx','newwindow', 'height=" + h + ",width=" + w + ", toolbar=no,scrollbars=yes,menubar=no,resizable=yes,location=no, status=no,left=100,top=80');</script>");
8.      
 Response.Write("<script>window.open('MaterialBaseChangeSearch.aspx');</script>");
posted @ 2007-09-04 10:37  wj-conquer  阅读(461)  评论(0编辑  收藏  举报