<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RetrieveIdentity.aspx.cs" Inherits="RetrieveIdentity" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
   <title>Inserting data and retrieving Identity value using Stored Procedures</title>
   <link href="chapterStyles.css" type="text/css" rel="stylesheet" />
</head>
<body>
   <form id="form1" runat="server">
      <div id="container">
         <h1>Inserting data and retrieving Identity value using Stored Procedures</h1>
         <p>
         This example illustrates how to use SQL Server stored procedures to insert a 
         new record and then retrieve the identity value.
         </p>
			<h2>Enter a new publisher</h2>
			<asp:TextBox ID="txtName" runat="server" /><br />
			<asp:Button ID="btnAdd" runat="server" Text="Add Publisher" OnClick="btnAdd_Click" />
			<p>
         <asp:Label ID="labMsg" runat="server" />
         </p>        
      </div>
   </form>
</body>
</html>