Database
  Home arrow Database arrow ADO.NET 101: SqlDataReader, Part 2
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? 
DATABASE

ADO.NET 101: SqlDataReader, Part 2
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 15
    2005-03-21

    Table of Contents:
  • ADO.NET 101: SqlDataReader, Part 2
  • Configuring the Connection to the Database
  • Configuring the Command Object for an SQL Statement
  • Configuring the Command Object for Stored Procedure
  • Stored Procedure that Requires an Input Parameter

  • 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


    ADO.NET 101: SqlDataReader, Part 2


    (Page 1 of 5 )

    In the first part of our SqlDataReader tutorial, you saw how to work with it using code. In this second part, you will learn how to work with it using the graphic user interface.

    In Part 1, working with the SqlDataReader was described entirely based on code. The connection to the SQL Server, the configuring of the SQLCommand object -- whether it was for executing SQL statements, or stored procedures, were all accomplished by code. Further, the data was displayed to the user on the browser using mostly the Write() method of the Request object.

    In this tutorial, working with SQLDataReader will be described mostly by using the Graphic User Interface. Resorting to GUI is helpful in prototyping, and invaluable in understanding how the code is generated in the design phase. A step-by-step approach is used and the tutorial is self-contained, and any referencing links are sparingly used to reduce distraction.

    The tutorial follows the same pattern as Part 1. 

    In many forums, the frequently asked questions often center around the display of data retrieved from the database. The data retrieved from the database can be displayed by a variety of methods:

    • Using Response.Write() method as seen in Part 1
    • Populating a dynamically created HTML Table
    • Using Standard Server Controls
      • Textbox
      • ListBox
      • Drop Down List
      • Table
    • Using Databound Controls

    In this tutorial several methods of displaying the data will be described. Using Databound controls as well as using data repeater control will be described in a separate tutorial.

    More Database Articles
    More By Jayaram Krishnaswamy


     

    DATABASE ARTICLES

    - Manage Projects with SQL Server Management S...
    - Query Editing and Regular Expressions with S...
    - Using SQL Server Management Studio Tools
    - SQL Server Management Studio
    - Exporting a MySQL Database to Excel Using OD...
    - Controlling Databases with SQL Server 2005 D...
    - Using Recovery Models with SQL Server 2005 D...
    - Handling Database Properties for the SQL Ser...
    - Managing Permissions with the SQL Server 200...
    - SQL Server 2005 Database Engine Security
    - Administering SQL Server 2005 Database Engine
    - Building Applications with Anonymous Types
    - A Closer Look at Anonymous Types
    - Programming with Anonymous Types
    - Converting Your Excel Worksheet into a Worki...





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