Last post Feb 28, 2017 02:36 AM by Jean Sun
Feb 27, 2017 06:32 PM|thyagi9510|LINK
I have repeater control with editlink button.The same page is opened in two tabs of same browser logged in with same user.On editing the repeater control , the IssueID value is stored in session inside repeater_ItemCommand() event.... like Session["IssueID"]
The repeater control is inside the gridview.
when user edits different records in both the browser at the same time or one after the other the .The second record IssueID value is overwritten with first IssueID value. On updating the records,same values are updated in the both the records .
There is conflict in updation of the records.
How an i update different record values at same time .
Can anyone please let me know,if there is alternative solution for this.
Thanks in advance
Feb 27, 2017 06:39 PM|mgebhard|LINK
Session is bound to the browser instance including all browser tabs. You need page level state management.
Store the IssueId in a hidden field within the HTML Form. If you need to pass the IssueId between pages then use a query string.
Feb 28, 2017 02:36 AM|Jean Sun|LINK
A session can be defined as a server-side storage of information that is desired to persist throughout the user's interaction with the web site or web application. So the session is shared between pages, that's why the page A's session value can be overwritten
by page B.
You can use the ViewState to maintain the records for difference pages.
Web Forms pages provide the ViewState property as a built-in structure for automatically retaining values between multiple requests for the same page.
View state is maintained as a hidden field in the page. For more information, see
ASP.NET State Management Overview.