现在的位置: 首页 > 综合 > 正文

OA几种状态的改变–前,退,主页,离开

2013年08月28日 ⁄ 综合 ⁄ 共 1282字 ⁄ 字号 评论关闭
 在框架中的实现(分为:top,left,main)

其中top.aspx前台中:
<asp:ImageButton ID="ImageButton1" runat="server" Height="30px" ImageUrl="~/image/gohome.gif" Width="30px" OnClick="ImageButton1_Click" ToolTip="主页" />
                      <a href="javascript:back();" title="后退"><img style="width:30px; height:30px; border :0px;" src="../image/player_rew.gif" alt="后退"/></a>
                      <a href="javascript:forward();" title="前进"><img style="width:30px; height:30px; border :0px;" src="../image/player_fwd.gif" alt="前进"/></a>
                      <asp:ImageButton ID="ImageButton4" runat="server" Height="30px" ImageUrl="~/image/finish.gif" Width="30px" OnClick="ImageButton4_Click" OnClientClick="javascript:return confirm('你确定要离开本系统?')" ToolTip="退出系统" />

javascript:
<script language="javascript" type="text/jscript">
   <!--
   
   function back(){
        window.history.go(-1);
   }
  
   function forward(){
        window.history.go(1);
   }

   // -->
   </script>

top.aspx.cs中:

protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
        {
            Response.Write("<script>window.parent.location='default_main.aspx';</script>");
        }

        protected void ImageButton4_Click(object sender, ImageClickEventArgs e)
        {
            Session.Abandon();
            Response.Write("<script>window.parent.close()</script>");
        }

                     

抱歉!评论已关闭.