页面A.aspx 点控件(Dropdownlist)后弹出窗口 B.aspx 在B.aspx输入完条件后.点确定后. 把值"a","b"
传递到 A.aspx 中的 ListBox中.
我想点确定的时候.如何写代码. 给A.aspx中的ListBox赋值谢谢大家.部分代码如下:<script language=javascript>
function RedirectUrl()
{
var str='';
for(i=0;i<window.document.form1.RadioButtonList_Statistical.length;i++)
{
if(window.document.form1.RadioButtonList_Statistical[i].checked)
str=window.document.form1.RadioButtonList_Statistical[i].value;
}
var txt1=document.getElementById("TextBox_Value").value;
//window.alert(str); 值1:
//window.alert(txt1); 值2:
//需要代码如下:
1: A.aspx 中的listBox 绑定值1、值2
2: 关闭本窗口。 }
</script>
解决后接贴。谢谢大家。
传递到 A.aspx 中的 ListBox中.
我想点确定的时候.如何写代码. 给A.aspx中的ListBox赋值谢谢大家.部分代码如下:<script language=javascript>
function RedirectUrl()
{
var str='';
for(i=0;i<window.document.form1.RadioButtonList_Statistical.length;i++)
{
if(window.document.form1.RadioButtonList_Statistical[i].checked)
str=window.document.form1.RadioButtonList_Statistical[i].value;
}
var txt1=document.getElementById("TextBox_Value").value;
//window.alert(str); 值1:
//window.alert(txt1); 值2:
//需要代码如下:
1: A.aspx 中的listBox 绑定值1、值2
2: 关闭本窗口。 }
</script>
解决后接贴。谢谢大家。
showModalDialog,showModelessDialog
代码例子里就有了
具体使用 请参考该方法的帮助
孟子的Blog