页面传值---超简单 在线等 asp.net!!!web1页面里有个文本框我想在web2页页里选择一个集合,然后我点web2上的确定后把选择的集合里面的数据放到web1的文本框里 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 1.url传值 pageload事件中判断付值2.session3.window.opener.document.getElementById("txt").value='你的数组数据'; up3.window.opener.document.getElementById("txt").value='你的数组数据';这种情况下 web2必须是web1 的子窗口 即需用 window.open()打开 window.open("","name1","width=100,height=200,toolbar=no,scrollbars=no,menubar=no,screenX=100,screenY=100"); 参考 1.url传值 pageload事件中判断付值2.session3.window.opener.document.getElementById("txt").value='你的数组数据'; 我写了如下脚本: <script language=javascript> function aa() { window.open("F_index.aspx", "短信发送", "width=600,height=300,toolbar=no,scrollbars=no,menubar=no,screenX=100,screenY=100"); window.opener=null; window.close(); }</script>//然后在body 里写<body onload=aa()>但是当我运行的时候 弹出的那个窗口老是闪` 而且里面没有控件,我的起始页是F_index.aspx为什么会闪里面没有控件呢 还有种方法。在 web2 中的提交按钮设置 postbackURL属性为web1在web1中写 protected void Page_Load(object sender, EventArgs e) { TextBox username = (TextBox)PreviousPage.FindControl("TextBox1"); Response.Write(username.Text); }用controlid取值,所以想取什么取什么。这是2。0的新功能 1.1不支持。 同意楼上的,圣殿祭司的ASP.NET 2.0开发详解 使用C#,这本书里看来的 将上传的EXCEL文件中的数据导入SQL Server中 (C#.NET) 为何出现“无法创建目录或文件”的错误 【100分跪求】用Attribute实现操作数据库时的 事务处理 的解决方法 急啊,高手请进。 图片保存的问题 招聘技术专家 我想在一个文件前面加入几个字节,请问怎么实现? 请教:CRL开发无法引用System.Windows.Forms.RichTextBox吗? 请问VS.NET编程环境中,属性窗口中的表格是用什么作的? C#里怎么输入输出啊??? 接口调用 请问C#泛型怎么使用?
2.session
3.window.opener.document.getElementById("txt").value='你的数组数据';
这种情况下 web2必须是web1 的子窗口 即需用 window.open()打开
参考
2.session
3.window.opener.document.getElementById("txt").value='你的数组数据';
function aa()
{
window.open("F_index.aspx", "短信发送", "width=600,height=300,toolbar=no,scrollbars=no,menubar=no,screenX=100,screenY=100");
window.opener=null;
window.close();
}</script>
//然后在body 里写
<body onload=aa()>
但是当我运行的时候 弹出的那个窗口老是闪` 而且里面没有控件,
我的起始页是F_index.aspx为什么会闪里面没有控件呢
在 web2 中的提交按钮设置 postbackURL属性为web1在web1中写
protected void Page_Load(object sender, EventArgs e)
{
TextBox username = (TextBox)PreviousPage.FindControl("TextBox1");
Response.Write(username.Text);
}用controlid取值,所以想取什么取什么。
这是2。0的新功能 1.1不支持。