You must Sign In to post a response.
  • Category: ASP.NET

    Datatable or generic list to return data from one layer to another ?

    I am confused whether to use datatable or generic list to pass values from dal to bal and ui since the amount of data is same despite of using both datatable or generic list ?

    Some posts on google says it doesn't make much difference while some says list is better over datatable ?

    Please justify.........?

    Also, how to implement sorting in gridview through generic list in 3 tier architecture ?
    Please provide a example with steps and its explanation.
  • #769206
    Here is the example code snippet for How to pass data between classes and application layers
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
    <asp:SessionParameter DefaultValue="News" Name="category"
    SessionField="CurPageCategory" Type="String" />

    Reference URL:

  • Sign In to post your comments