Click here to Skip to main content
16,005,376 members
Home / Discussions / C#
   

C#

 
GeneralRe: Launching Forms Dynamically Pin
Skynyrd6-Jan-05 3:30
Skynyrd6-Jan-05 3:30 
GeneralControlling Scroll bars Pin
Wjousts4-Jan-05 5:32
Wjousts4-Jan-05 5:32 
GeneralDeclaring inherited class objects Pin
MarkBremmer4-Jan-05 5:32
MarkBremmer4-Jan-05 5:32 
GeneralRe: Declaring inherited class objects Pin
Bahadir Cambel4-Jan-05 6:57
Bahadir Cambel4-Jan-05 6:57 
GeneralRe: Declaring inherited class objects Pin
Steven Campbell4-Jan-05 16:52
Steven Campbell4-Jan-05 16:52 
GeneralRe: Declaring inherited class objects Pin
Anonymous5-Jan-05 4:20
Anonymous5-Jan-05 4:20 
Generalmulit-client server programming question Pin
ppp0014-Jan-05 0:22
ppp0014-Jan-05 0:22 
GeneralRe: mulit-client server programming question Pin
perlmunger4-Jan-05 8:30
perlmunger4-Jan-05 8:30 
If you're using Sql Server for the database and two people update at the same time, the second person's update will happily over write the first person's update.

If you have two people working on the same record at the same time in your user interface and you want to ensure when the first person updates the record, that the second person gets notified that there has been a change made since starting to work with the record themselves, then you would probably want to put that into your business logic (object layer). You should put a last update date column into your database table that is being updated and check it before calling the update. You should also save the date/time that the record was opened and check that against the last update on the record. If it has been updated since the current person first accessed it, then you should prompt the user to determine if they want to see what has changed and/or if they want to overwrite it.

Hope that helps.

-Matt

------------------------------------------

The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris.
--Larry Wall
QuestionHow to get the Application path of a console app.? Pin
senfgurke3-Jan-05 19:35
senfgurke3-Jan-05 19:35 
AnswerRe: How to get the Application path of a console app.? Pin
senfgurke3-Jan-05 20:08
senfgurke3-Jan-05 20:08 
GeneralRe: How to get the Application path of a console app.? Pin
Charlie Williams4-Jan-05 5:51
Charlie Williams4-Jan-05 5:51 
GeneralRe: How to get the Application path of a console app.? Pin
senfgurke4-Jan-05 19:35
senfgurke4-Jan-05 19:35 
Generalpattern comparision Pin
Member 12609413-Jan-05 18:53
Member 12609413-Jan-05 18:53 
GeneralRe: pattern comparision Pin
jan larsen4-Jan-05 2:38
jan larsen4-Jan-05 2:38 
General2 threads use the same database connection to do transaction... Pin
ting6683-Jan-05 16:51
ting6683-Jan-05 16:51 
QuestionHow to package a project Pin
Blue_Skye3-Jan-05 16:49
Blue_Skye3-Jan-05 16:49 
AnswerRe: How to package a project Pin
perlmunger4-Jan-05 8:17
perlmunger4-Jan-05 8:17 
GeneralTo perlmunger Pin
Blue_Skye4-Jan-05 15:23
Blue_Skye4-Jan-05 15:23 
GeneralRe: To perlmunger Pin
perlmunger5-Jan-05 6:30
perlmunger5-Jan-05 6:30 
GeneralTo perlmunger Pin
Blue_Skye5-Jan-05 19:39
Blue_Skye5-Jan-05 19:39 
GeneralTo perlmunger Pin
Blue_Skye5-Jan-05 19:41
Blue_Skye5-Jan-05 19:41 
QuestionHow to achieve Back Button Ctrl like IE in Windows Form ? Pin
stan283-Jan-05 16:27
stan283-Jan-05 16:27 
AnswerRe: How to achieve Back Button Ctrl like IE in Windows Form ? Pin
Judah Gabriel Himango4-Jan-05 4:36
sponsorJudah Gabriel Himango4-Jan-05 4:36 
QuestionChecked Combobox for .NET? Pin
Darren Weir3-Jan-05 14:09
Darren Weir3-Jan-05 14:09 
AnswerRe: Checked Combobox for .NET? Pin
perlmunger4-Jan-05 8:06
perlmunger4-Jan-05 8:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.