Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
Password Reminder
Register
Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #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
 


Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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



All times are GMT -4. The time now is 04:17 AM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.