<SCRIPT type="text/javascript" language=javascript>
function OpenNewWindow(id)
{
   try {
         window.openModalDlg("KeChengBanDetails.aspx?id="+id,410,337);
        }
  catch(e)
       {    
location.reload(true);
       }
}
</SCRIPT>
在DataGrid中的<asp:ButtonColumn  Text="详细信息" HeaderText="查看信息" CommandName="btnview" > </asp:ButtonColumn>,当点击DataGrid的ButtonColumn时,如何调用前台javascript的OpenNewWindow(id)函数弹出一个新窗口?