如题
解决方案 »
- 大虾们,如果获取SqlDataSource某列的值啊?
- Ajax:在本机运行正常,部署到服务器出现Not Found错误
- 一条SQL语句,很简单
- 100分求DropDownList在运行时显示数据库外的文本,急,解决马上给分
- 请教高手:我的代码错在哪里?关于DataGrid更新的问题???
- 空格问题
- 用ajax返回一个JS脚本,不能执行,怎么办?
- asp.net 引用项目外文件
- 我的ASPX页面中引入了OWC对EXCEL文件进行处理,发布时只安装NETFRAME框架能行吗。
- 奇怪的问题,我已经装了mdac2.7了,可是。。。。。
- checkboxlist多选显示多个层并保存状态
- 在IIS7下,输入域名会自动跳转到域名/default.aspx
window.opener.document.getElementById(' parentInput ').value='returnMsg';
window.close();
</script>"
这样吗 ?
还有就是在子页面里面设置返回值 window.returnvalue='返回值'; 必须是模式窗口
<script>
function SelectArcListA(fname){
var posLeft = 10;
var posTop = 10;
window.open("content_select_list.asp?f="+fname+"&k="+form1.keyword.value, "selArcList", "scrollbars=yes,resizable=yes,statebar=no,width=700,height=500,left="+posLeft+", top="+posTop);
}
</script>
<input name="lsel" type="button" id="lsel" class="nbt" style="width:150px" onChange="" value="从已发布文档中选取..." onClick="SelectArcListA('form1.xiangguanid');"> 子窗体核心代码<SCRIPT language=javascript>
//获得选中文件的文件名
function getCheckboxItem()
{
var allSel="";
if(document.form2.arcID.value) return document.form2.arcID.value;
for(i=0;i<document.form2.arcID.length;i++)
{
if(document.form2.arcID[i].checked)
{
if(allSel=="")
allSel = document.form2.arcID[i].value;
else
allSel = allSel+","+document.form2.arcID[i].value;
}
}
return allSel;
}
function selAll()
{
for(i=0;i<document.form2.arcID.length;i++)
{
if(!document.form2.arcID[i].checked)
{
document.form2.arcID[i].checked=true;
}
}
}
function noSelAll()
{
for(i=0;i<document.form2.arcID.length;i++)
{
if(document.form2.arcID[i].checked)
{
document.form2.arcID[i].checked=false;
}
}
}
function ReturnValue()
{
if(window.opener.document.form1.xiangguanid.value==""){
window.opener.document.form1.xiangguanid.value = getCheckboxItem();
}
else{
window.opener.document.form1.xiangguanid.value += ","+getCheckboxItem();
}
alert("成功增加你选中的ID,你可以继续增加");
//window.opener=true;
//window.close();
}
复制代码 代码如下:
<A class=inputbutx
href="javascript:selAll()">全选</A> <A class=inputbutx
href="javascript:noSelAll()">取消</A> <A class=inputbutx
href="javascript:ReturnValue()">把选定值加到列表</A>
window.opener.name = 要传的值window.name可以放几十兆的数据