.NET
  Home arrow .NET arrow VB.NET Data Retrieval: How to Retrieve Ent...
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? 
.NET

VB.NET Data Retrieval: How to Retrieve Entire Table Rows in MS SQL Server
By: Codex-M
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 2
    2010-07-27

    Table of Contents:
  • VB.NET Data Retrieval: How to Retrieve Entire Table Rows in MS SQL Server
  • Retrieve entire database table rows and display on the browser
  • Final Default.aspx source code
  • Default.aspx.vb: The VB.NET Script
  • Final Default.aspx.vb source code: Retrieving entire database row records

  • 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


    VB.NET Data Retrieval: How to Retrieve Entire Table Rows in MS SQL Server


    (Page 1 of 5 )

    There are times when you can't do things the easy way in ASP.NET 3.5. What if you can't rely on its default settings and have to define everything? That's when you might want to use VB.NET. This article will show you how to do that with an application that connects and retrieves data from an MS SQL Server database.

    You might already know that you can connect and retrieve information from the MS SQL Server database in ASP.NET 3.5 by using a "click and drag" technique. For example, if you are working with GridView and DetailsView web controls, you can simply configure the SQL data source to connect, retrieve data and then display it on the web browser, without the need for any hard coding or customized code.

    There are times, however, that you really need to customize your web development. For instance, you may need to define everything, not just rely on the default settings and formatting which are available in the ASP.NET 3.5 controls. This means you won't be using click and drag techniques.

    It also means that you will need to write your own code or edit an existing source code that will accomplish the following functions:

    1. Connect to the MS SQL server database. (Done in default.aspx.vb)

    2. Retrieve information from the database according the SQL query commands. (Done in default.aspx.vb)

    3. Display the information back to the web browser. (Done in default.aspx using repeater, headertemplate, itemtemplate and footertemplate controls).

    This tutorial will focus on the use of VB.NET to connect and retrieve data from an MS SQL Server database in order to display entire table rows to the web browser, without using GridView or DetailsView web control.

    More .NET Articles
    More By Codex-M


     

    .NET ARTICLES

    - ASP.NET 3.5 Role Based Security and User Aut...
    - Creating ASP.NET Login Web Pages and Basic C...
    - Configure DotNetNuke for First Time Use
    - VB.NET Data Retrieval: How to Retrieve Entir...
    - Introducing .NET
    - Building Business Objects for an Application
    - Methods for an Application`s Business Logic ...
    - Properties of an Application`s Business Logi...
    - Classes and Properties in an Application`s B...
    - Organizing Code for the Business Logic Layer...
    - Building the Business Logic Layer
    - Completing a Business Layer with Windows Wor...
    - Building Applications with Windows Workflow ...
    - Building the Data and Business Layers Using ...
    - The Transformed XML Explorer in MFC





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