Re: Bryan, Help!



Perhaps it's not the session variable, per se. But it is related to
ViewState; and if I don't do a session.removeall, then I get the key errors.
If I do the session.removeall, the paging fails until I refresh the page.

I need to surgically manage the viewstate of the grid only and not use this
shotgun approach to the problem. Can anyone tell me what I'm missing here?

Thanks.


"Alvin Bruney [MVP]" <some guy without an email address> wrote in message
news:OH$bxSpkHHA.1388@xxxxxxxxxxxxxxxxxxxxxxx
How is it that your session variables are tied to paging? In the typical
case, one doesn't imply the other. Unless you have changed this through
code.

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
OWC Black book on Amazon and
www.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley


"Ross Culver" <rculver@xxxxxxxxxxxxxxx> wrote in message
news:%23TnKLTkkHHA.1532@xxxxxxxxxxxxxxxxxxxxxxx
Ok, back to the same issue about keys, dictionary, session variables,
etc.

If I session.removeall in order to rid myself of the "Item has already
been added . . . " error, then paging doesn't work.

How can I clear the keys from the dictionary without removing all session
variables and why do I have to?

Ross





.



Relevant Pages

  • Re: viewstate=false doesnt work
    ... >> Alvin Bruney ... >> The Microsoft Office Web Components Black Book with .NET ... >>> Alvin, if you turn viewstate off for a DataGrid, then, yes the data must ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: viewstate=false doesnt work
    ... > Alvin, if you turn viewstate off for a DataGrid, then, yes the data must ... >> Alvin Bruney ... >> The Microsoft Office Web Components Black Book with .NET ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: Is there anyway to treat ViewState the same as SessionState?
    ... so you can add it to session there ... >> Alvin Bruney ... >>> only have the possibility of one active viewstate. ... >>> Is there such a capability built into the Framework? ...
    (microsoft.public.dotnet.framework)
  • Re: datagrid control
    ... which is why you have to manually rebind it in the ... >> Alvin Bruney ... >>>> you just need to manually map in the page load if viewstate is set to ... >>>>> Is the datagrid control sort and paging commands work only when both ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: datagrid control
    ... which is why you have to manually rebind it in the ... >> Alvin Bruney ... >>>> you just need to manually map in the page load if viewstate is set to ... >>>>> Is the datagrid control sort and paging commands work only when both ...
    (microsoft.public.dotnet.framework.aspnet.datagridcontrol)

Loading