<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>ASP.NET AJAX Discussion and Suggestions</title><link>http://forums.asp.net/1007.aspx</link><description>This forum is the place for ASP.NET AJAX 'getting started' questions, general questions that don't fit in one of the other forums about AJAX </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: update the record but only one user ... the time space for other user is for wating...</title><link>http://forums.asp.net/thread/2587183.aspx</link><pubDate>Thu, 28 Aug 2008 18:58:35 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2587183</guid><dc:creator>atanu.podder</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2587183.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=2587183</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;You should use some column to indentify the last updated date time. Takin your case, applying my approach:&lt;/p&gt;&lt;p&gt;In the database I have one row which user A and user B both are tryin to update.&lt;/p&gt;&lt;p&gt;What I suggest is:&lt;/p&gt;&lt;p&gt;To update a record you need to select the same, while selcting provide the last updated datetime as well, suppose that was 080820081112. So, user A and user B both have selected the same record and has same&amp;nbsp;&amp;nbsp; last updated datetime value i.e. 080820081112. Now, when user A updates the records, obviously the last updated datetime value would be changed, supposse it bacame 080820081116, now when user B tries to update the same, since the value of last updated datetime does not match with the current one in the database, throw a diffferent message.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thats it!&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Atanu&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: update the record but only one user ... the time space for other user is for wating...</title><link>http://forums.asp.net/thread/2586338.aspx</link><pubDate>Thu, 28 Aug 2008 12:55:54 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2586338</guid><dc:creator>mrmercury</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2586338.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=2586338</wfw:commentRss><description>&lt;span style="mso-ansi-language:EN-US;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;You could use optimistic locking, one way of doing it is using a timestamp in your record, on submit compared against the database, if it’s different then you would tell the user another user has changed the record.&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;</description></item><item><title>update the record but only one user ... the time space for other user is for wating...</title><link>http://forums.asp.net/thread/2586299.aspx</link><pubDate>Thu, 28 Aug 2008 12:32:11 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2586299</guid><dc:creator>prashantsvl</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2586299.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=2586299</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;hello experts..&lt;/p&gt;
&lt;p&gt;I am trying to&amp;nbsp; update the record ... the record update sucessfully&amp;nbsp;. but&amp;nbsp;if there are nos users and if &lt;em&gt;&lt;strong&gt;user &amp;quot;A&amp;quot;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;trying to update the record&amp;nbsp;&amp;amp; &amp;nbsp;simultaniosly update the &lt;strong&gt;&lt;em&gt;user &amp;quot;B&amp;quot;&lt;/em&gt;&lt;/strong&gt; trying to&amp;nbsp; update the record &amp;nbsp;then&amp;nbsp;there should be the message&amp;nbsp;to&lt;em&gt;&lt;strong&gt; user &amp;#39;B&amp;#39;&amp;nbsp;&lt;/strong&gt;&lt;/em&gt; &amp;nbsp; &amp;quot; &lt;strong&gt;currently &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;updating&amp;nbsp;the record... u dont have the chance..&amp;nbsp;&amp;quot;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;so how this situation can handle????????&lt;/p&gt;
&lt;p&gt;reply as early as possible...&lt;/p&gt;
&lt;p&gt;prashantsvl&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>