.NET
  Home arrow .NET arrow Page 4 - Beginning LINQ to SQL Using Visual Studio ...
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  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Mobile Linux 
App Generation ROI 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
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? 
.NET

Beginning LINQ to SQL Using Visual Studio 2008
By: Jagadish Chaterjee
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 7
    2008-03-31

    Table of Contents:
  • Beginning LINQ to SQL Using Visual Studio 2008
  • Developing a simple LINQ to SQL application (without LINQ designer): UI Design and source in VB.NET
  • Developing a simple LINQ to SQL application (without LINQ designer): source in C#
  • CRUD operations using the LINQ to SQL application (without LINQ designer): UI Design
  • CRUD operations using the LINQ to SQL application (without LINQ designer): Source in VB.NET
  • CRUD operations using the LINQ to SQL application (without LINQ designer): Source in C#

  • 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


    Beginning LINQ to SQL Using Visual Studio 2008 - CRUD operations using the LINQ to SQL application (without LINQ designer): UI Design


    (Page 4 of 6 )


    Add a new web form (aspx) to the project named "CRUDSample.aspx" and modify the user interface to look like the following (Fig 05):



    The following is the code to design the above user interface:


    <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="CRUDSample.aspx.vb" Inherits="SampleVB.CRUDSample" %>


    <!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>Untitled Page</title>

    <style type="text/css">

    .style1

    {

    width: 100%;

    }

    </style>

    </head>

    <body>

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

    <div>

     

    <table class="style1">

    <tr>

    <td valign="top">

    <table class="style1">

    <tr>

    <td>

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

    </td>

    <td>

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

    <asp:Button ID="btnSearch" runat="server" Text="-&gt;" />

    </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>

    </table>

    <asp:Button ID="btnInsert" runat="server" Text="Add New" />

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

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

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

    </td>

    <td valign="top">

     

    <asp:Button ID="btnSelectStar" runat="server" Text="SELECT *" />

    <asp:GridView ID="GridView1" runat="server">

    </asp:GridView>

     

    </td>

    </tr>

    </table>

     

    </div>

    </form>

    </body>

    </html>


    More .NET Articles
    More By Jagadish Chaterjee


       · Hello guys,I am back with a series on "LINQ to SQL" using Visual Studio 2008. ...
       · WHat is that in new LINQ in VS2008.?Can any one explain it..............?
       · i downloaded source code and could not find tables, "emp" and "dept". am i missing...
       · since i'm so new to this i have to ask a stupid question. i downloaded the source...
       · You can find it...
       · You are supposed to create those tables by yourself in your own database. The...
       · thank you very much!! i knew i was missing something.
     

    .NET ARTICLES

    - Using CrystalReportViewer to Display Crystal...
    - Creating Summary .Net Crystal Reports
    - More on Commands, Input and the WPF
    - Grouping and Aggregating When Querying LINQ ...
    - Commands, Input and the WPF
    - Keyboard and Ink Input with WPF
    - Mouse Input and the WPF
    - Input with Windows Presentation Foundation
    - Introducing LINQ with XML and Databases
    - An Introduction to LINQ
    - Querying LINQ to SQL: Basics
    - Completing a Simple Storefront with LINQ
    - Knowing Your Environment: the System.Environ...
    - Creating the Home Page for a Simple Storefro...
    - LINQ Quickly with Language Integrated Queries





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
    Stay green...Green IT