But I keep getting "viewstate is invalid or corrupt"
error when I page through other pages. Again, this
only happens when I have 11 bound columns and there's
hundreds of pages from the search. How can I fix the
viewstate problem? I noticed that the least number of
columns I have in the DG, I won't have that viewstate
error. Someone told me that because I have a lot of
data, the viewstate can't hold it all; therefore, the
error. To counter that, I would need to assign the
dataset to a session variable.

In addition, I have a hyperlink column in the DG where
if you click on 1 of the rows, the editing portion of
that row is opened in a new window (page) in a
form-like manner. In the second page, I have a link
button "Return to List," which takes me back to the
first page, but my DG with the returned rows from the
search is gone. I see a refreshed page instead.
HOw can I maintain the results (datagrid) when I click
return from the second?

Thanks!
--- Mark E <[EMAIL PROTECTED]> wrote:

> Don't store any of the values.  Just enable paging
> in your DG so that you only show the limited number
> of records per page.
>  
> 
> <asp:Datagird AllowPaging="true" PageSize="25"
> ID="DG1" />
>  
> This would show 25 records per "page".  And the DG
> auto creates the numbers at the bottom to allow for
> paging.
>  
> Mark
> 
> sas0riza <[EMAIL PROTECTED]> wrote:
> 
> Hi,
> 
> I'm using a search form to retrieve data to be
> displayed in a 
> datagrid. However I realized that because my
> datagrid is rather big 
> (wide, with like 11 columns), and whenever I page to
> another page in 
> the DG, I would get a viewstate corrupt/invalid
> error. And if I cut 
> down the # of columns being returned in the DG, I
> would have no 
> trouble paging through.
> 
> How can I store a dataset in a session variable
> instead of viewstate 
> so I page through the datagrid?
> 
> Thanks!!
> 
> 
> 
> 
> Yahoo! Groups Sponsor 
> Get unlimited calls to
> 
> U.S./Canada
> 
> 
> ---------------------------------
> Yahoo! Groups Links
> 
>    To visit your group on the web, go to:
> http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
>   
>    To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>   
>    Your use of Yahoo! Groups is subject to the
> Yahoo! Terms of Service. 
> 
> 
> 
> [Non-text portions of this message have been
> removed]
> 
> 



                
__________________________________ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 
 



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to