日期:2014-05-18  浏览次数:20530 次

在GridView中点击图片,先跳出确认框,再调用服务器端代码问题(哪位大侠能解决阿)
aspx代码:
<asp:GridView   ID= "gv_ExpressInterestDocuments "   runat= "server "   Width= "100% "   AutoGenerateColumns= "False "   BorderWidth= "0px "   DataKeyNames= "Id "OnRowDeleting= "gv_ExpressInterestDocuments_RowDeleting ">
          <Columns>
                  <asp:CommandField     ButtonType= "Image "   DeleteImageUrl= "~/imgs/esrcGarbageCan.GIF "   ShowDeleteButton= "True "   >
                        <ItemStyle   HorizontalAlign= "Center "   VerticalAlign= "Middle "   Width= "30px "   />
                            </asp:CommandField>
                                <asp:BoundField   DataField= "Id "   Visible= "False "     />
                                    <asp:TemplateField   HeaderText= "Document   Title ">
                                      <HeaderStyle   CssClass= "tabTitle "   />
                                          <ItemStyle   Width= "200px "   />
                                            <ItemTemplate>
                                              <asp:LinkButton   ID= "LinkButton1 "   runat= "server "   OnCommand= "Update "   Text= ' <%#DataBinder.Eval(Container.DataItem, "FileName ")%> '
      CommandArgument= ' <%#DataBinder.Eval(Container.DataItem, "FilePath ")%> '> LinkButton </asp:LinkButton>
                                              </ItemTemplate>
                                            </asp:TemplateField>
                                        <asp:BoundField>
                                    <ItemStyle   Width= "1% "   />
                                  </asp:BoundField>
                            <asp:BoundField