目前弹出窗口编辑页勉的最佳解决方案
|
function win_view(id) { |
在子窗口中加上的编辑按纽和添加按纽结束的时候
| Response.Write("<script language='javascript'>window.returnValue='ok';window.close();</script>"); |
这个方案中间要添加一个中间的界面:
| <%@ Page language="c#" Codebehind="ClubActionSortFrame.aspx.cs" AutoEventWireup="false" Inherits="ReadShop.OtherPageContent.ClubActionSortFrame" %> <%@ Page language="c#" Codebehind="ClubActionSortFrame.aspx.cs" AutoEventWireup="false" Inherits="ReadShop.OtherPageContent.ClubActionSortFrame" %> <%@ Page language="c#" Codebehind="ClubActionSortFrame.aspx.cs" AutoEventWireup="false" Inherits="ReadShop.OtherPageContent.ClubActionSortFrame" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <HTML> <HEAD> <title>ClubActionSortFrame</title> <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1"> <meta name="CODE_LANGUAGE" Content="C#"> <meta name="vs_defaultClientScript" content="JavaScript"> <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"> <LINK href="../Style/Style.css" type="text/css" rel="stylesheet"> <script language="javascript"> function ajustHeight() { var h = document.body.scrollHeight+35 window.dialogHeight = h+15+"px"; } </script> <base target="_self"> </HEAD> <body MS_POSITIONING="GridLayout"> <FONT face="宋体"></FONT> </body> </HTML> |
后台:
|
private int id; #region 初始化变量 InitVariable() #region 显示IFame ShowIframe() |
浙公网安备 33010602011771号