Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ASP / Database Access / September 2007



Tip: Looking for answers? Try searching our database.

asp.net GRIDVIEW lock row

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
marian - 11 Sep 2007 21:21 GMT
Hi,

I am trying to solve a following problem:
I've got a GridView in which I store data like Names , Zip codes... and the
problem si following:
Admin A selects one person (one row) from GridView and he changes the
record, but the change (he selects EDIT button on GRIDVIEW  and at the end
he confirms the change with UPDATE button) takes 5 minutes because someone
disrupts him.
Meanwhile another admin B wants to do the same thing but admin A already
began to edit the same row. Admin A and admin B confirms the change with
UPDATE button (first one is admin A) and the change of admin A is displayed
at the end of both UPDATES. Is there a method (example,source code...) by
which admin B is informed (for example with pop-up window) that the same row
he wants to EDIT is already in use by Admin A ?
I am using STORED PROCEDURES to retrieve data (SELECT * FROM....) from SQL
database and display them in GRIDVIEW and also I am using STORED PROCEDURES
to update data.
Bob Barrows [MVP] - 11 Sep 2007 21:41 GMT
> Hi,
>
> I am trying to solve a following problem:
> I've got a GridView

There was no way for you to know it (except maybe by browsing through
some of the previous questions before posting yours - always a
recommended practice),  but this is a classic asp newsgroup. ASP.Net is
a different technology from classic ASP. While you may be lucky enough
to find a dotnet-savvy person  here who can answer your question, you
can eliminate the luck factor by posting your question to a newsgroup
where the dotnet-savvy people hang out.  I suggest
microsoft.public.dotnet.framework.aspnet.
There are also forums at www.asp.net where you can find a lot of people
to help you.

> in which I store data like Names , Zip codes...
> and the problem si following:
[quoted text clipped - 9 lines]
> with pop-up window) that the same row he wants to EDIT is already in
> use by Admin A ?

I suppose you could have the EDIT button run a procedure that would
cause a flag to be set in the database to lock the row. But even this is
not perfect.

Signature

Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

 
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



©2009 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.