Using Datasets in mutiluser applications

  • Thread starter Thread starter Herb Stull
  • Start date Start date
H

Herb Stull

Hello All,

I'm developing an ASP.NET app that requires the use of datasets. The problem
is, User 1 opens that app and goes to a form that builds a Datatable
(Table1) into Dataset11. If User 2 comes along and open the same form, User
1's Table1 is overwritten in favor of the new data requested by User 2.

I've tried making the table names unique but the .FILL method still wipes
out User 1's table.

I'm sure there is an easy solution here, I just can't seem to find it. If
anyone out there has a clue, I'd appreciate hearing from you.

Thanks, Herb Stull
 
Hi Herb,

Actually you needn't worry about this. The server will create the form
objects in different places according to requests from different sessions.
When the paged is rendered to the client, the page object will be destroyed
immediately on the server. Please refer to the following links for more
information about lifecycle of an ASP .NET page:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html
/aspnet-pageobjectmodel.asp

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm
l/cpconcontrolexecutionlifecycle.asp

For better performance, we could use Caching mechanism. ASP.NET provides a
full set of cache mode. For more information, you can check:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm
l/cpconcachingportionsofaspnetpage.asp

If anything is unclear, please feel free to reply to the post.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

--------------------
| From: "Herb Stull" <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.adonet
| Subject: Using Datasets in mutiluser applications
| Date: Tue, 14 Oct 2003 19:57:31 -0400
| Lines: 16
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| NNTP-Posting-Host: 23.pwlr1.xdsl.nauticom.net
| Message-ID: <[email protected]>
| X-Trace: news.nauticom.net 1066176434 209.195.150.152 (14 Oct 2003
20:07:14 -0400)
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onlin
e.de!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-xfer1.atl.newshost
ing.com!63.218.45.11.MISMATCH!newshosting.com!news-xfer2.atl.newshosting.com
!129.250.35.142.MISMATCH!iad-feed.news.verio.net!phl-feed.news.verio.net!new
s.nauticom.net!not-for-mail
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.adonet:63663
| X-Tomcat-NG: microsoft.public.dotnet.framework.adonet
|
| Hello All,
|
| I'm developing an ASP.NET app that requires the use of datasets. The
problem
| is, User 1 opens that app and goes to a form that builds a Datatable
| (Table1) into Dataset11. If User 2 comes along and open the same form,
User
| 1's Table1 is overwritten in favor of the new data requested by User 2.
|
| I've tried making the table names unique but the .FILL method still wipes
| out User 1's table.
|
| I'm sure there is an easy solution here, I just can't seem to find it. If
| anyone out there has a clue, I'd appreciate hearing from you.
|
| Thanks, Herb Stull
|
|
|
 
Back
Top