页面间的跳转,打开,关闭小技巧.
生活随笔
收集整理的這篇文章主要介紹了
页面间的跳转,打开,关闭小技巧.
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
1. 在框架頁(yè)面中 點(diǎn)擊左頁(yè)面中的按鈕,在右邊頁(yè)面中彈出頁(yè)面。
protected?void?BtnPickingList_Click(object?sender,?EventArgs?e)????????{
????????????Response.Write("<script>window.top.mainfram.location='DeskWeb/PickingList.aspx';</script>");
????????}
2. 在左頁(yè)點(diǎn)超連接后跳轉(zhuǎn)到右頁(yè)面
?<a href="DeskWeb/BaseDOC/TypeSet.aspx" target="mainfram">類別管理</a>
3. 直接跳轉(zhuǎn)
Response.Redirect("MaterialBaseChange.aspx");
4.?彈出對(duì)話框
?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>");
轉(zhuǎn)載于:https://www.cnblogs.com/wj-wangjun/archive/2007/09/04/881171.html
總結(jié)
以上是生活随笔為你收集整理的页面间的跳转,打开,关闭小技巧.的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 28句话让你的人际关系更上一层楼
- 下一篇: 引用 看下面图片是向左转还是向右转呢?