ASP.NET
  Home arrow ASP.NET arrow Page 2 - Introduction to the ADO.NET Entity Framewo...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ASP.NET

Introduction to the ADO.NET Entity Framework using ASP.NET
By: Jagadish Chaterjee
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 3
    2009-04-09

    Table of Contents:
  • Introduction to the ADO.NET Entity Framework using ASP.NET
  • CRUD operations using ADO.NET Entity Framework: Screen Design
  • CRUD operations using ADO.NET Entity Framework: Source Code
  • Digging a bit more into the ADO.NET Entity Framework
  • What are Entity SQL queries?

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Introduction to the ADO.NET Entity Framework using ASP.NET - CRUD operations using ADO.NET Entity Framework: Screen Design


    (Page 2 of 5 )

     

    Let us add a new form (CRUD.aspx) to our project so that we can have a demonstration of CRUD operations using ADO.NET Entity Framework, using ASP.NET as client. 

    Modify CRUD.aspx so that it looks like this: 

    <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="CRUD.aspx.vb" Inherits="Sample01.CRUD" %>

     

    <!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 runat="server">

    <title></title>

    </head>

    <body>

    <form id="form1" runat="server">

    <div>

     

    <table cellpadding="2" cellspacing="2">

    <tr>

    <td>

    <asp:Label ID="Label1" runat="server" Text="Empno:"></asp:Label>

    </td>

    <td>

    <asp:TextBox ID="txtEmpno" runat="server"></asp:TextBox>

    </td>

    <td align="left">

    <asp:Button ID="btnSearch" runat="server" Text="Search" />

    </td>

    </tr>

    <tr>

    <td>

    <asp:Label ID="Label2" runat="server" Text="Ename:"></asp:Label>

    </td>

    <td>

    <asp:TextBox ID="txtEname" runat="server"></asp:TextBox>

    </td>

    </tr>

    <tr>

    <td>

    <asp:Label ID="Label3" runat="server" Text="Sal:"></asp:Label>

    </td>

    <td>

    <asp:TextBox ID="txtSal" runat="server"></asp:TextBox>

    </td>

    </tr>

    <tr>

    <td>

    <asp:Label ID="Label4" runat="server" Text="Deptno:"></asp:Label>

    </td>

    <td>

    <asp:TextBox ID="txtDeptno" runat="server"></asp:TextBox>

    </td>

    </tr>

    <tr>

    <td colspan="3">

    <table cellpadding="3" cellspacing="0">

    <tr>

    <td>

    <asp:Button ID="btnClear" runat="server" Text="Clear" /></td>

    <td>

    <asp:Button ID="btnAdd" runat="server" Text="Add" /></td>

    <td>

    <asp:Button ID="btnUpdate" runat="server" Text="Update" /></td>

    <td>

    <asp:Button ID="btnDelete" runat="server" Text="Delete" /></td>

    </tr>

    </table>

    </td>

    </tr>

    <tr>

    <td colspan="3">

    <asp:Label ID="lblMsg" runat="server"></asp:Label>

    </td>

    </tr>

    </table>

     

    </div>

    </form>

    </body>

    </html>

    Once the above form gets executed, it should look like the following (Fig 05):

     

    More ASP.NET Articles
    More By Jagadish Chaterjee


       · Hai,This is my first article on dealing with ADO.NET Entity framework with...
       · Thanks man it reduced me lot of lines of code.
     

    ASP.NET ARTICLES

    - Adding Content to a Static ASP.NET Website
    - Building a Static ASP.NET Website in a Basic...
    - Develop Your First ASP.NET Website with Visu...
    - Run ASP.NET in Windows XP Home with Cassini ...
    - How to Test a Web Application
    - How to Add Code and Validation Controls to a...
    - Working in Source and Split Views to Build a...
    - How to Build a Web Form for a One-Page Web A...
    - How to Develop a One-Page Web Application
    - An ASP.NET Web Application in Action
    - Developing ASP.NET Web Applications
    - An Introduction to ASP.NET Web Programming
    - Introduction to the ADO.NET Entity Framework...
    - Completing an In-Text Advertising System und...
    - Programming an In-Text Advertising System un...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek