在search.apx 里用Session["XXX"]=wbk.text
=Dropdownlist.selectitem.text
然后在user.aspx 里用string aaa=Session["XXX"].ToString()
至于刷新用脚本写吧,随便google一下,到处都是
=Dropdownlist.selectitem.text
然后在user.aspx 里用string aaa=Session["XXX"].ToString()
至于刷新用脚本写吧,随便google一下,到处都是
解决方案 »
- MVC里面使用frame后在Top里面点击刷新整个上下左右的frame问题
- 请教关于Button按钮的click事件问题
- FCKeditor2.6.8 上传图片配置
- 关于Ajax.Request的问题
- 嵌套表删除相关数据,有一定难度
- 如何逐行读取gridview里的值啊?
- 请问在留言板中如何动态添加一条新留言?如搜狐的“校友录”的形式
- 用js和webservice.htc 调用c#写的webservice 传到服务器不能用了。
- 能不能控制JavaScript中的confirm对话框默认为"取消"按钮啊?
- 用Repeater 还是DataList呢?
- XP下装了.net和IIS,建立web application时候说无法建立与服务器的连接。
- 请问这个是什么意思啊?
Session["price"]=price.ToString(); //单价
Session["name"]=name.ToString(); //会员名
当我关闭窗口时,如何把值传给父窗口.???
在父窗体中
<scrip>
var val = window.modDialog("../search.aspx");
if(val)//判断子窗体中传递过来的值
{
//相应的代码
}
在search.aspx窗体,用button1的onclick事件去调用脚本函数
<script>
window.returnValue="";这样是可以实现值的传递的
得不到值
"window.returnValue=document.getElementById('{列表}').value+'|'+document.getElementById('{文本框}').value;window.close();return false;";
theButton.OnClientClick=scp.Replace("{列表}",theDropDownList.ClientID).Replace(
"{文本框}",theTextBox.ClientID);使用ClientID动态输出控件的客户端ID,不要想当然,也不要简单地到html上看一下就胡乱硬编码到程序中。ClientID根本是动态改变的。