Need advices on my codes

Discussion in 'ASP .Net' started by Danny Ni, Nov 11, 2004.

  1. Danny Ni

    Danny Ni Guest

    Hi,

    I am using datagrid's paging feature. What I usually do is to use codes to
    get a dataset from SQL server and put the dataset into session, and in
    PageIndexChanged event handler I set the datagrid datasource to the dataset
    in session.

    Questions:
    (1) Is this a good way? Or should I use the same codes to get dataset again
    in PageIndexChanged event handler.
    (2) When should I remove the dataset from session? This dataset is only
    useful to this page only.

    TIA
     
    Danny Ni, Nov 11, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Gildas Garcia

    need advices : intranet archecture design

    Gildas Garcia, Jul 4, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    371
    Gildas Garcia
    Jul 4, 2003
  2. =?utf-8?B?5rW36aOO?=

    Need your advices

    =?utf-8?B?5rW36aOO?=, Apr 9, 2006, in forum: Java
    Replies:
    10
    Views:
    694
    Monique Y. Mudama
    Apr 17, 2006
  3. GrelEns
    Replies:
    1
    Views:
    272
    Paul Rubin
    Oct 23, 2003
  4. Joh
    Replies:
    2
    Views:
    324
    Lonnie Princehouse
    Jul 15, 2004
  5. Replies:
    2
    Views:
    2,897
    Malcolm
    Aug 20, 2005
Loading...

Share This Page