我的一gridview放入UpdatePanel中,结果发现删除功能不能用(点击删除无反应,IE状态栏显示网页有错误,但不知道错在哪)。如果把gridview放到UpdatePanel外面,就可以用,怎么回事。
奇怪的是:编辑功能不管是在UpdatePanel里还是外面都能用。
是不是要调整哪里。
奇怪的是:编辑功能不管是在UpdatePanel里还是外面都能用。
是不是要调整哪里。
解决方案 »
- 关于DAL层的问题
- 问个问题,做好的asp.net网站要假设在ftp服务器上?
- 为什么我的aspx网页每1分钟刷新一次
- 100分求,邮件发送与接受代码!!!!!!!!!!!!!!!!!!!
- 网页,页面中,如何无声无息地运行一段后台代码?期间页面要正常响应的!
- 数据导入问题!!急!!!
- 如何实现session中的数据常时间保存?非要长时间保存
- C#如何报出指定的异常?
- 在Page_Load里初始化TextBoxMode.Password的TextBox
- 帮帮忙!为什么请求.aspx页面时总告诉我找不到……?
- 从gridview中一个一个celll导出到excel太慢,有好的办法吗,谢谢
- 怎样判断一个表的集合中没有数据
没开VS.也无法具体帮你看一下,能不能贴下代码?
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:GridView ID="GridView1" runat="server" AllowPaging="True"
AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333"
GridLines="None" HorizontalAlign="Center"
onpageindexchanging="GridView1_PageIndexChanging"
onrowcancelingedit="GridView1_RowCancelingEdit"
onrowcreated="GridView1_RowCreated" onrowdeleting="GridView1_RowDeleting"
onrowediting="GridView1_RowEditing" onrowupdating="GridView1_RowUpdating"
PageSize="6"
onrowdatabound="GridView1_RowDataBound">
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
<Columns>
<asp:BoundField DataField="公告" DataFormatString="· {0} " HeaderText="公告">
<ItemStyle HorizontalAlign="Left" Wrap="False" />
</asp:BoundField>
<asp:BoundField DataField="类别" DataFormatString="· {0} " HeaderText="类别" />
<asp:BoundField DataField="编辑" DataFormatString="· {0} " HeaderText="编辑人">
<ItemStyle HorizontalAlign="Left" />
</asp:BoundField>
<asp:BoundField DataField="日期" DataFormatString="· {0:yyyy-MM-dd} "
HeaderText="日期" />
<asp:CommandField HeaderText="编辑" ShowEditButton="True" />
<asp:CommandField ShowDeleteButton="True" HeaderText="删除D" />
<asp:CommandField HeaderText="选择S" ShowSelectButton="True" />
</Columns>
<PagerStyle BackColor="#336699" ForeColor="White" HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<EditRowStyle BackColor="#999999" />
<AlternatingRowStyle BackColor="White" ForeColor="#284775" />
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
</td>
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
</httpHandlers>