Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET 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
 
Old August 12th, 2004, 01:36 AM
Authorized User
 
Join Date: May 2004
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default IIS Semaphore Condition[Urgent Help Required]

Salam
I have a Problem, I have Created an Application in Asp.net, there is a module in which Administrator can Edit INformation regarding users, I am concerned that if one user is editing an information,another user logs in and opens the same user information,modifies it and at the same time both users click "save",What would Happen?,same situation with new user creation.Does IIS maintains "Semaphore" conditions itself or should I check it pragrammily?, I shall be very glad if someone helps me in that situation

Heartily Thanks

 
Old August 12th, 2004, 06:36 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Santhi Send a message via MSN to Santhi
Default

I think you need to do it programmatically..For new user check for the data already exists or not in the database and for edit if one user edits the page set some flag as true.When he saves the data set the flag as false.Allow other user to edit the information only when the flag is false.
   Are you giving administator rights to many people?


 
Old August 12th, 2004, 07:35 AM
Authorized User
 
Join Date: May 2004
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

No Actually, Administrator could be more than one people,and u know that web applications are distributed.I thougth IIS would maintain this situation itself.
Well Thanks a lot for Help

 
Old August 12th, 2004, 08:40 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Santhi Send a message via MSN to Santhi
Default

Sorry for the question.Administator can be more than one people.

 
Old August 12th, 2004, 10:00 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

If you wish to prevent the race condition of two people modifying the same user at the same time, you must do that programatically- SQL SERVER and IIS won't do that for you.

Of course, you could lock the row as soon as someone starts editing, this way no one else could go in and edit that row. Ask about how to do that in the SQL SErver forum.


Hal Levy
Web Developer, PDI Inc.

NOT a Wiley/Wrox Employee





Similar Threads
Thread Thread Starter Forum Replies Last Post
Urgent:XSLT element value selection and condition amhicraig XSLT 1 December 4th, 2007 07:57 PM
required urgent help deb_kareng C# 1 September 5th, 2006 08:49 AM
Urgent help required! mani84 ADO.NET 1 May 19th, 2006 02:34 AM
urgent reply required uitian123 Crystal Reports 0 August 19th, 2005 12:48 AM
Urgent help required AMP - Max Current BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 1 December 20th, 2004 11:26 PM





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