Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > Bryan, Help!

Reply
Thread Tools

Bryan, Help!

 
 
Ross Culver
Guest
Posts: n/a
 
      05-09-2007
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


 
Reply With Quote
 
 
 
 
Ross Culver
Guest
Posts: n/a
 
      05-09-2007
Sorry, Alvin, I don't know why I was thinking 'Bryan'.


"Ross Culver" <> wrote in message
news:%...
> 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
>



 
Reply With Quote
 
 
 
 
Alvin Bruney [MVP]
Guest
Posts: n/a
 
      05-09-2007
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" <> wrote in message
news:%...
> 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
>



 
Reply With Quote
 
Ross Culver
Guest
Posts: n/a
 
      05-10-2007
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$...
> 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" <> wrote in message
> news:%...
>> 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
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments