Click here to Skip to main content
13,055,408 members (54,354 online)
Click here to Skip to main content
Articles » Web Development » ASP.NET » Data » Downloads

Stats

186.9K views
2.2K downloads
111 bookmarked
Posted 19 Aug 2003

ASP.NET Optimistic Concurrency Control

, 19 Aug 2003
How to implement the optimistic concurrency control without the DataSet
Concurrency
BLL
Concurrency.csproj.webinfo
Concurrency.vsdisco
Global.asax
Images
spacer.gif
Thumbs.db
SQLHelper
Stored Procedures
_vti_cnf
_vti_pvt
access.cnf
deptodoc.btr
doctodep.btr
service.cnf
service.lck
services.cnf
_vti_script
_vti_txt
<%@ Page language="c#" Codebehind="Product.aspx.cs" AutoEventWireup="false" Inherits="Concurrency.Product" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
  <head>
    <title>Product</title>
<meta content="Microsoft Visual Studio 7.0" name=GENERATOR>
<meta content=C# name=CODE_LANGUAGE>
<meta content=JavaScript name=vs_defaultClientScript>
<meta content=http://schemas.microsoft.com/intellisense/ie5 name=vs_targetSchema>
  </head>
<body>
<form id=Product method=post runat="server">
<table id=tblHeader cellSpacing=0 cellPadding=0 border=0>
  <tr>
    <td>
      <h1>Product Edit</h1>
      <P><asp:Label id=lblConcurrencyMsg runat="server" ForeColor="Red" Visible="False"> Another user has changed this product since you started to edit it. The changes made by the other user are shown in gray color. Please review the changes.</asp:Label></P>
     </td>
  </tr>
</table>
<table id=tblBody cellSpacing=0 cellPadding=0 border=0>
  <tr>
    <td><IMG height=0 src="Images\spacer.gif" width=140 ></td>
    <td><IMG height=0 src="Images\spacer.gif" width=200 ></td></tr>

  <tr>
    <td><asp:label id=Label1 runat="server">Product:</asp:label></td>
    <td><asp:textbox id=txtName runat="server" MaxLength="40"></asp:textbox></td></tr>
  <tr>
    <td><asp:label id=Label2 runat="server">Category:</asp:label></td>
    <td><asp:dropdownlist id=cmbCategories runat="server" width="150px"></asp:dropdownlist></td></tr>
  <tr>
    <td><asp:label id=Label3 runat="server">Supplier:</asp:label></td>
    <td><asp:dropdownlist id=cmbSuppliers runat="server" width="150px"></asp:dropdownlist></td></tr>
  <tr>
    <td><asp:label id=Label4 runat="server">Quantities per unit:</asp:label></td>
    <td><asp:textbox id=txtQtyPerUnit runat="server" MaxLength="20"></asp:textbox></td></tr>
  <tr>
    <td><asp:label id=Label5 runat="server">Unit price:</asp:label></td>
    <td><asp:textbox id=txtUnitPrice runat="server"></asp:textbox></td></tr>
  <tr>
    <td><asp:label id=Label6 runat="server">Units in stock:</asp:label></td>
    <td><asp:textbox id=txtUnitsInStock runat="server"></asp:textbox></td></tr>
  <tr>
    <td><asp:label id=Label7 runat="server">Units on order:</asp:label></td>
    <td><asp:textbox id=txtUnitsOnOrder runat="server"></asp:textbox></td></tr>
  <tr>
    <td><asp:label id=Label8 runat="server">Reorder level:</asp:label></td>
    <td><asp:textbox id=txtReorderLevel runat="server"></asp:textbox></td></tr>
  <tr>
    <td></td>
    <td><asp:checkbox id=chkDiscontinued runat="server" Text="Discontinued"></asp:checkbox></td></tr>
  <tr>
    <td></td>
    <td><asp:button id=btnAccept runat="server" Text="Acept"></asp:button><IMG src="Images\spacer.gif" width=25 > <asp:button id=btnCancel runat="server" Text="Cancel"></asp:button></td></tr></table>
<P>&nbsp;</P></form>
	
  </body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Teo
Web Developer
United States United States
No Biography provided

You may also be interested in...

Pro
Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170713.1 | Last Updated 20 Aug 2003
Article Copyright 2003 by Teo
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid