Articles → ADO.NET → Sqldatasourcemode Enum In Sqldatasource
Sqldatasourcemode Enum In Sqldatasource
Sqldatasourcemode Enum
- DataReader
- DataSet
Datareader Mode
Dataset Mode
Example
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="[your_connection_string]"
DataSourceMode="DataReader"
SelectCommand="SELECT * FROM [Subjects]">
</asp:SqlDataSource>
<asp:GridView ID="GridView1" runat="server" DataSourceID="SqlDataSource1" AllowSorting="true">
</asp:GridView>