Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old March 30th, 2008, 06:25 PM
Authorized User
Join Date: Jun 2006
Location: , , .
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to jlrolin Send a message via MSN to jlrolin
Default Storing data in HttpContext, concurrency issue

Here's the situation, I have a GridView UserControl that has a custom sort. The sort is custom because our Web Services return arrays of objects, not datasets. We use a StateServer Session State and since the objects have SOAP headers, I can't use Session State or I get a Serialization error.

Here's the problem: When I databind the Gridview, I put the objects in some type of state management. Right now, that's the HttpContext.Current.Cache. Big problem is that I'm having some type of concurrency error in our production environment.

If I sort a Gridview on firstpage.aspx, and someone else is sorting on secondpage.aspx, the datasources seem to converge or replace one another. I'll get an errors revolving around the wrong Object type being set to my own Gridview even though I'm not on secondpage.aspx, I'm on firstpage.aspx.

I've set the Cache object to have a unique ID as in the SessionID, but I'm still running into problems where my sort simply has NOTHING in the object because it was replaced, or I grab another Gridview's object type from another page that another user is accessing.

How can I fix this problem?

ASP.NET 1.1/2.0 Developer
VB.NET Developer
ASP.NET 1.1/2.0 Developer
VB.NET Developer

Similar Threads
Thread Thread Starter Forum Replies Last Post
Data management,access and storing kaliaparijat C# 2005 1 May 30th, 2008 02:54 AM
Storing data to a variable Mikect VB Databases Basics 1 April 16th, 2007 01:53 PM
data storing probs anukagni Access 1 April 3rd, 2006 06:33 AM
storing data in hashtable msrnivas General .NET 0 July 5th, 2005 04:07 PM
Concurrency Issue billy_bob_the_3rd Classic ASP Components 1 October 23rd, 2004 09:33 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.