你可以这样,
页面加个html的button,不显示
然后为gridview里面的每个button添加js事件,模拟触发点击事件

解决方案 »

  1.   

    缺少UpdatePanel!!
    加:
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>

               ......
               ......             </ContentTemplate>
            </asp:UpdatePanel>
      

  2.   

    在后台调用前台JS;
    JS调用一个button的事件.
    button的事件中:ModalPopupExtender1.Show();就行了.---------------------------------------------------------------
    如果想直接显示就在button的事件中:ModalPopupExtender1.Show();就行了.
      

  3.   

    http://blog.csdn.net/xianfajushi/archive/2008/11/30/3413317.aspx