GridView - 更新面板 - 列按钮 - 完整PostBak [英] GridView - Update Panel - Column Button - Full PostBak

查看:68
本文介绍了GridView - 更新面板 - 列按钮 - 完整PostBak的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 

我有一个包含按钮列的gridview。一旦你点击它,它就会发回一整页。

I have a gridview that contains a button column. once you click it, it does a full page post back.

我如何使其成为部分? 

how do i make it partial? 

:GridView ID="gvReportAccess" CssClass="Grid" runat="server" AutoGenerateColumns="False" OnRowCommand="gvReportAccess_RowCommand" OnRowDataBound="gvReportAccess_RowDataBound" DataKeyNames="Id,ReportName">
                <Columns>
                    <asp:BoundField DataField="Id" HeaderText="Id" />
                    <asp:BoundField DataField="ReportDesc" HeaderText="ReportDesc" />
                    <asp:BoundField DataField="ReportCaegory" HeaderText="ReportCaegory" />
                    <asp:BoundField DataField="ReportName" HeaderText="ReportName" />
                    <asp:BoundField DataField="UserName" HeaderText="UserName" />
                    <asp:BoundField DataField="DateAccessGranted" HeaderText="DateAccessGranted" />
                    <asp:TemplateField AccessibleHeaderText="Select Report" HeaderText="Report" ShowHeader="False">
                        <ItemTemplate>
                            <asp:UpdatePanel runat="server">
                                <ContentTemplate>
                                    <asp:Button ID="Button1" runat="server" CausesValidation="False" CommandName="Select" Text="Select" />
                                </ContentTemplate>
                              
                            </asp:UpdatePanel>
                        </ItemTemplate>
                    </asp:TemplateField>
                    
                </Columns>
            </asp:GridView>

请告知。 

please advise. 

谢谢 

推荐答案

请在<上查询ASP.NET和网络相关问题a href ="http://forums.asp.net">
http://forums.asp.net 。

请记得关闭你的主题通过将有用的帖子标记为答案,然后在适当的论坛中启动新帖子,如果您有新问题。请不要在同一个帖子中提出几个问题。

Please remember to close your threads by marking helpful posts as answer and then start a new thread in an appropriate forum if you have a new question. Please don't ask several questions in the same thread.


这篇关于GridView - 更新面板 - 列按钮 - 完整PostBak的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆