Custom Paging Efficiency

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Joseph D. DeJohn

    #1

    Custom Paging Efficiency

    Hello,
    I'm trying to implement custom paging. At the moment I can get the
    first page to display. When I click on the number 2 it takes forever to
    come back to the Page_Load function. I am saving my DataSet in ViewState
    with the WriteXML and ReadXML functions. Does anyone have an idea of why it
    is taking so long? Any help would be appreciated. Thank-you.

    --
    Sincerely,
    Joseph D. DeJohn
    Latest news coverage, email, free stock quotes, live scores and video are just the beginning. Discover more every day at Yahoo!



  • S. Justin Gengo

    #2
    Re: Custom Paging Efficiency

    It would be that you're saving the entire data set in view state. This
    means that when you post back the dataset has to be serialized and sent over
    the ether twice: Once to the server where it's recreated and then back to
    the client again. You'd be better off either saving it in session state (no
    serialization required) or just connecting to the database each time using a
    datareader.

    Sincerely,

    --
    S. Justin Gengo, MCP
    Web Developer

    Free code library at:
    www.aboutfortunate.com

    "Out of chaos comes order."
    Nietzche
    "Joseph D. DeJohn" <joeddejohn@hot mail.com> wrote in message
    news:eSIe1VEXDH A.1744@TK2MSFTN GP12.phx.gbl...[color=blue]
    > Hello,
    > I'm trying to implement custom paging. At the moment I can get[/color]
    the[color=blue]
    > first page to display. When I click on the number 2 it takes forever to
    > come back to the Page_Load function. I am saving my DataSet in ViewState
    > with the WriteXML and ReadXML functions. Does anyone have an idea of why[/color]
    it[color=blue]
    > is taking so long? Any help would be appreciated. Thank-you.
    >
    > --
    > Sincerely,
    > Joseph D. DeJohn
    > http://www.geocities.com/cujdd5/
    >
    >[/color]


    Comment

    Working...