Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / October 2005

Tip: Looking for answers? Try searching our database.

multi user access problem in asp.net

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Deep Silent Ocean - 08 Oct 2005 00:47 GMT
Hi All

I am developing one Portfolio Management application where there is
single database shared by all the traders.

I have developed web-based application for this. I want to make this
multiuser application.

Following is the architecture of the application ...

Front End is developed in WebForms

Business Layerm : Represented by one Object
Database Layer : Represented by one Object
and Actual Database : SQL Server

Now, when I open two browser window and open Main-Entry form in both the
windows.

Now, when I deleted one transaction in one window and it gets updated in
database and that page gets refreshed and shows updated data.

now, in the second browser-window still there is stale data, now when i
select the same transactions which i deleted in the first window it
throws me error. it says that row is no longer there. That means DataSet
is shared by both the pages.

How, can I avoid that so that every opening of new windows gets its own
dataset ? or some log-in mechanisam which creates different session for
every user ...

I want to seperate out the user from each other so that individual user
can work on its own set of dataset ..

My Business Logic Layer and DbLogic Layer are seperate projects. Both
the layers are represented by one Object which i get from Factory pattern...

Following is the object creation sequence :

So invocation of Entry-Main Form.aspx creates one business object - >
business object inturn create dbutil object - > db util has dataset
within it which stores data coming out from stored procedure ...

Silent Ocean ...
Vadym Stetsyak - 10 Oct 2005 12:03 GMT
in asp.net each user receives its own session. In your situation you're
updating shared data.

To solve this you can create dataset object per user session, save it in the
this.Session["MyDataSet"]. Then each user will have its own copy of the
dataset.

Another problem here is that if you will change data in the database and
update dataset, then another session specific data will be also updated.

In general, it is common situation in multi-user systems, that is why while
designing your application you should consider some synchronizations
techinques ( data locks )

Signature

Vadym Stetsyak aka Vadmyst
http://vadmyst.blogspot.com

> Hi All
>
[quoted text clipped - 40 lines]
>
> Silent Ocean ...

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.