<script language="javascript">
function aaa(){
var retValue= window.showModalDialog("a.aspx?id=111");
if (retValue!=null)
document.all.TextBox1.value=retValue;
}
</script>
function aaa(){
var retValue= window.showModalDialog("a.aspx?id=111");
if (retValue!=null)
document.all.TextBox1.value=retValue;
}
</script>
解决方案 »
- 一个关于System.IndexOutOfRangeException: 无法找到列 1的问题
- 求教一个IIS的问题
- JS中怎么去获得动态创建的dropdownList的text值??
- 注意: 存盘数据库只要出现“酶”字存入数据库后再读出来就会乱码!
- --------一个关于文件上传的问题?-----------
- 如何在DATASET中的DATATABLE中,根据条件删除DATATABLE中的一行?
- Regex spReg=new Regex("\([0-9]+\)"); 为什么不对阿?
- 怎么样使datagrid内某一列变为超链接?
- 谁遇到在自定义服务器控件时,CreateChildControls()方法执行多次的情况,若有请告知出现的可能性。最好举一个例子。
- aspx文件中怎么获取类似ht"http://www.csdn.net/Expert/PostNew.asp?room=33&typestate=1"中的room、typestate参数?
- 那位大哥给一个删除时有确定和取消按扭的对话框的example
- 在asp.net中如何调用文件对话框?
即不用服务器端事件,客户端的点击事件即可处理
参考里面的例子
e.Item.Cells[0].Attributes.Add("onclick","window.open('xinxiForm.aspx?idmain="+e.Item.Cells[0].Text+"','','ToolBar=no,width=260,height=200');");
在'xinxiForm.aspx中:
string strsql=Request.quryingString.ToString();
RegisterStartupScript("show",script);这两行代码你可以用一下,我想应该是符合你的要求的,把参数名换掉就OK了,我的也是要的到模态对话框的返回值来决定下一步的……
http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/showmodaldialog.asp?frame=true