我需要通过 点攻一个BUTTON方法 来弹出一个新窗口 然后从该窗口得到返回值
代码如下 
下面是注册一段 JAVSCRIPT  现在看来没有什么问题 If (Not IsClientScriptBlockRegistered("clientScript1")) Then
                Dim strScript1 As String = "<script>"
                strScript1 += "function bbb(obj,obj2){"
                strScript1 += "var str=window.showModalDialog('http://202.115.112.69/hms/ss/CalendarDlg.asp','_blank','dialogWidth:200px; dialogHeight:200px;status:no; directories:yes;scrollbars:no;Resizable=no');"
                'strScript1 += "var str=window.showModalDialog('http://202.115.112.40:8079/ss/CalendarDlg.asp','_blank','dialogWidth:200px; dialogHeight:200px;status:no; directories:yes;scrollbars:no;Resizable=no');"
                'strScript1 += "if(str!=null){obj.value=str;postDataBack(str);}}"
                strScript1 += "if(str!=null){obj.value=str;obj2.value=str;}}"
                strScript1 += "</script>"
                RegisterClientScriptBlock("clientScript1", strScript1)
            End If然后我添加事件的绑定 
BUTTON1.Attributes.Add("on_click", "bbb(document.all.worktime,document.all.worktime1);")
然后也没问题运行正常 !但是
我需要通过 DATAGRID 里面的 BUTTON来做这件事情
于是我又这么做DataGrid1.Attributes.Add("DataGrid1_DeleteCommand", "bbb(document.all.worktime,document.all.worktime1);")结果失败不知道如何 给 GATAGRID里面的 ButtonColumn 添加绑定不知道有没有人 解决过类似的问题 或者对 GATAGRID比较熟悉——————————————————————————————如果不行我就想换种解决方法用什么方法可以在ASPNET里 
弹出具体大小 具体位置的窗口 
谢谢