62,046
社区成员
发帖
与我相关
我的任务
分享
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="a.aspx.cs" Inherits="iframe_a" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
<script type="text/javascript">
function clickb()
{
window.frames["iframe_ID"].document.getElementById("BtnSave").click();
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<div> <iframe id="iframe_ID" src="b.aspx"> </iframe> </div>
</div>
<input id="Button1" type="button" onclick="clickb()" value="button" />
</form>
</body>
</html>
<iframe name="iframe1" src=""> </iframe>
<input type="button" id="btn1" onclick="javascript:iframe1.src='b.aspx?save=1';">
void page_load()
{
if(!IsPostBack)
{
if(Request.QureyString["save"]!=null)
DoSave();
}
}
private void DoSave()
{
CheckBox cbselect = null;
for (int i = 0; i < this.DLisselect.Items.Count; i++)
{
cbselect = this.DLisselect.Items[i].FindControl("CBisselect") as CheckBox;
if (cbselect != null && cbselect.Checked == true)
dtColumn.Rows[i]["isselect"] = true;
else
dtColumn.Rows[i]["isselect"] = false;
}
dtColumn = XQuery.SetOrderID(dtColumn);
if ((!string.IsNullOrEmpty(Login_id)) && (!string.IsNullOrEmpty(Query_no)))
bllxq.BuildQueryPersonal(dtColumn, Login_id, Query_no);
}