打开一个页面,但要传一个参数到另外一个页面,怎么实现?
我要从index.aspx打开页面fenye.aspx,
但在fenye.aspx页面里有 <IFRAME id= "a1_2 " src= "bbs_zhuti.aspx " frameBorder= "0 "> </IFRAME> ,
在bbs_zhuti.aspx里要接受参数Request.QueryString[ "bbs_lx "],
而这个参数要从index.aspx传过来,怎么实现?
------解决方案-------------------- <%@ Page language= "c# " Codebehind= "iframe.aspx.cs " AutoEventWireup= "false " Inherits= "TVWEB.Web.HqWeb.Richang.Jihuabianpai.iframe " %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN " >
<HTML>
<HEAD>
<title> 增加 编辑 </title>
<meta content= "Microsoft Visual Studio .NET 7.1 " name= "GENERATOR ">
<meta content= "C# " name= "CODE_LANGUAGE ">
<meta content= "JavaScript " name= "vs_defaultClientScript ">
<meta content= "http://schemas.microsoft.com/intellisense/ie5 " name= "vs_targetSchema ">
<script language= "javascript " type= "text/javascript ">
function load()
{
with( document.all)
{
item( "Value ").src = "AttributesForm.aspx?sbzGUID= <% =sbzGUID %> &jhGUID= <% =jhGUID %> &state= <% =state %> ";
}
}
</script>
</HEAD>
<body onload= "load(); ">
<form id= "Form1 " method= "post " runat= "server ">
<iframe id= "Value " name= "Value " width= "100% " scrolling= "no " height= "100% "> </iframe>
<iframe id= "Message " name= "Message " width=0 scrolling= "no " height=0 src=Message.aspx> </iframe>
</form>
</body>
</HTML>
-----------------
根据你的需求改一下就可以了