日期:2014-05-19  浏览次数:20400 次

火大啊.动态加载的用户控件中的gridview咋不能执行删除事件???????
<%@   Control   Language= "C# "   AutoEventWireup= "true "   CodeFile= "Mm.ascx.cs "   Inherits= "UC_Admin_Mm "   %>
<table   style= "word-break:break-all "   width= "600 "   cellspacing= "0 "   align= "center "   cellpadding= "0 "   border= "0 ">
    <tr> <td     colspan= "3 "> <img   src= "style/images/photoup.gif "   width= "100% "   height= "10 "   > </td>
    </tr>
    <tr   height= "30 ">
        <td   width= "1 "   class= "backs "> </td>
        <td   width= "498 "class= "backq ">
<p   style= "line-height:   140%;   margin-left:   12;   margin-top:   0;   margin-bottom:   5 "> <img   src= "style/images/tb_title.gif "   align=absmiddle>   <b> 添加管理员 </b> </p>
<asp:GridView   ID= "GridView1 "   BorderWidth= "0px "   runat= "server "   AllowPaging= "True "   AutoGenerateColumns= "False "   CellPadding= "1 "   CellSpacing= "1 "   Width= "100% "   OnRowDataBound= "GridView1_RowDataBound "   OnRowDeleting= "GridView1_RowDeleting ">
        <Columns>
                <asp:BoundField   HeaderText= "ID "   DataField= "Aid "   />
                <asp:BoundField   HeaderText= "帐号 "   DataField= "Account "   />
                <asp:BoundField   HeaderText= "密码 "   DataField= "Password "   />
                <asp:BoundField   HeaderText= "姓名 "   DataField= "Aname "   />
                <asp:BoundField   HeaderText= "联系方式 "   DataField= "Contacts "   />
                <asp:BoundField   HeaderText= "加入时间 "   DataField= "AddTime "   />
                <asp:TemplateField   HeaderText= "管理 "   InsertVisible= "False "   ShowHeader= "False ">
                        <ItemTemplate>
                                <asp:LinkButton   ID= "LinkButton1 "   runat= "server "   CausesValidation= "False "   CommandName= "Edit "
                                        Text= "编辑 "> </asp:LinkButton>
                                <asp:LinkButton   ID= "LinkButton2 "   runat= "server &