父窗体:A.aspx :一TextBox 和
<a onclick='var op=window.showModalDialog("b.aspx")'>打開</a>子窗体:B.aspx :
RadioButtonList 有五個項.其中:
Me.RadioButtonList1.SelectedItem.Text="123456"请问怎样:在
父窗体:A.aspx :一TextBox设为:
Me.RadioButtonList1.SelectedItem.Text
<a onclick='var op=window.showModalDialog("b.aspx")'>打開</a>子窗体:B.aspx :
RadioButtonList 有五個項.其中:
Me.RadioButtonList1.SelectedItem.Text="123456"请问怎样:在
父窗体:A.aspx :一TextBox设为:
Me.RadioButtonList1.SelectedItem.Text
解决方案 »
- foreach 语句取出多行多列不同类型(string ,int)? var 得是什么类型才能取出(string,int)中的值?)
- 请教:关于ASP.NET 2.0的POST参数
- 頁面進入與退出效果
- 2005 webService 的问题
- 得到datalist中选中行的值
- 我的Session和cookies只能在本页面使用,为什么?大家帮我看看吧~
- asp.net DataGrid中有个模板列,放了个image控件。有个问题请教!
- 前几天把动网新闻传到支持ASP.NET空间上,不知道为什么,直接浏览的时候老出现问题
- 关于网页内容不让抓取的问题
- 页面回传时如何让base.onloa(e)不执行?
- 如何在GridView的编辑模版里使用其他控件而不要默认的输入框?
- 记事本打开后,然后把它保存为utf8格式的问题,双字节和单字节的问题,请求帮助。
window.returnValue = 你要返回的值;
window.close();父窗体
var reValue = showModalDialog('....');
if(isNan(reValue))
{
....
}
else
{
....
}
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<script language="javascript">
function onObjMore(url,name,height,width,formName) {
//window.alert(formName.file.type);
var feature = "dialogWidth:"+width+"px;dialogHeight:"+height+"px;scroll:yes;status:no;help:no;center:1";
var returnTarget = window.showModalDialog(url, name, feature);
if(returnTarget != undefined && returnTarget.length > 1) {
//document.location = returnTarget;
formName.file.value=returnTarget;
}
return false;
}
</script>
<link href="css/aljoin.css" rel="stylesheet" type="text/css">
</head> <body>
<form name="proForm" method="post" action="">
<table width="400" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="93" height="25" style="white-space:nowrap " nowrap>文件</td>
<td width="307" height="25"><input name="file" type="text" id="file"></td>
</tr>
<tr>
<td height="25"> </td>
<td height="25"><input type="button" name="Submit" value="上传文件" onClick="onObjMore('upfile.htm','upfile',300,300,proForm)"></td>
</tr>
</table>
</form>
</body>
</html>
upfile.htm:点击”关闭”按钮返回window.returnValue值给opener,代码如下:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<script language="javascript">
function exit() {
window.returnValue = "images/upload/2004080512.jpg";
window.close();
}
</script>
</head>
<body>
<input name="" type="button" value="关闭窗口" onClick="exit()">
</body>
</html>