我正在清理我的视图源,并想使用EnableViewState.我正在使用具有以下内容的gridview.
<asp:GridView ID="GridView1" runat="server" AlternatingRowStyle-BackColor="#ECECEC"
AllowSorting="true" AutoGenerateColumns="False" OnRowDataBound="gridvw_RowDataBound"
ShowFooter="True" OnSorting="gridvw1_DataSort" Caption="New Shoes"
CssClass="blueBord" HeaderStyle-ForeColor="White" OnPageIndexChanging="gridvw_PageIndexChanging"
OnRowCreated="gridvw_RowCreated" AllowPaging="True" PageSize="50" EnableViewState="false">
EnableViewState = true / false可以对GridView进行哪些控制?
最佳答案