Data Binding ASP.Net Tutorial

<%@ Page Language="VB" AutoEventWireup="false" %>


    Untitled Page


    
    

         
                                   runat="server" ConnectionString="YourConnectionString"
                           SelectCommand="SELECT * FROM [Books]">
    
    

                                 runat="server" 
                         AllowPaging="True" 
                         AutoGenerateRows="False"
                         BackColor="LightGoldenrodYellow" 
                         BorderColor="Tan" 
                         BorderWidth="1px" 
                         CellPadding="2"
                         DataKeyNames= "BookID" 
                         DataSourceID="SqlDataSource1" 
                         ForeColor="Black" 
                         GridLines="None"
                         Height="50px" 
                         Width="125px">
            
            
            
            
            
                
                
                
                
                                    SortExpression="Price" />
                                    HtmlEncode="False" SortExpression="LastReadOn" />
            

            
            
        
        
    


File: Web.config


    
                    providerName="System.Data.SqlClient" />