ASP.NET Code
  Home arrow ASP.NET Code arrow Page 7 - ASP.NET Guestbook
Iron Speed
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 
Dedicated Servers 
Download TestComplete 
Windows Web Hosting
 
IBM® developerWorks 
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 CODE

ASP.NET Guestbook
By: R. Abhiram Vikrant
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 290
    2004-03-17

    Table of Contents:
  • ASP.NET Guestbook
  • Viewing the Results
  • Setting Up the Drop Down Box
  • Connecting to the Database
  • Feeding the Database
  • Viewing Guestbook: viewcomments.aspx
  • Changing the ASP:DATALIST tag
  • Explanation of the Tags

  • 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
     
     
    Iron Speed
     
    ADVERTISEMENT

    Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!

    ASP.NET Guestbook - Changing the ASP:DATALIST tag
    (Page 7 of 8 )

    Switch to the HTML view (Right click the datalist and select “View HTML source”) and enter the following code within the ASP:DATALIST tag


    <HeaderTemplate>
         
    <H1>Guestbook</H1>
         
    <table>
        
    </HeaderTemplate>
        
    <FooterTemplate>
         
    </table>
        
    </FooterTemplate>
        
    <ItemTemplate>
         
    <TR>
          
    <TD>Name:</TD>
    <TD><%#Container.DataItem("name") %></TD>
         </TR>
         <TR>
          <TD>Email:</TD>
          <TD><%# COntainer.DataItem("email") %></TD>
         </TR>
         <TR>
          <TD>Rating:</TD>
          <TD><%# Container.DataItem("rating")%>/5</TD>
         </TR>
         <TR>
          <TD>Comments:</TD>
          <TD><%# Container.DataItem("comments")%></TD>
         </TR>
        </ItemTemplate>
        <AlternatingItemTemplate>
         <TR bgcolor="InfoBackground">
          <TD>Name:</TD>
          <TD><%#Container.DataItem("name") %></TD>
         </TR>
         <TR bgcolor="InfoBackground">
          <TD>Email:</TD>
          <TD><%# COntainer.DataItem("email") %></TD>
         </TR>
         <TR bgcolor="InfoBackground">
          <TD>Rating:</TD>
          <TD><%# Container.DataItem("rating")%>/5</TD>
         </TR>
         <TR bgcolor="InfoBackground">
          <TD>Comments:</TD>
          <TD><%# Container.DataItem("comments")%></TD>
         </TR>
        </AlternatingItemTemplate>
    <SeperatorTemplate>
    <tr>
    <td colspan=”2”><hr size=2color=”red”></td>
    </tr>


    More ASP.NET Code Articles
    More By R. Abhiram Vikrant


     

    ASP.NET CODE ARTICLES

    - How to Use the ListBox Control in ASP.NET 2.0
    - How to Load XML Documents in ASP.NET 2.0
    - DataGrid Code
    - ASP.NET Guestbook
    - User Controls and Client Side Scripting
    - ASP.NET Programming with Microsoft's AS...
    - ASP.NET Basics (part 3): Hard Choices
    - ASP.NET Basics (part 2): Not My Type
    - ASP.NET Basics (part 1): Nothing But .Net
    - Directory Tree Browser
    - How to get the confirmation of Yes/No from a...
    - Complete example using custom errors and wri...
    - Paging Certain # records per page .NET style
    - General Methods of formatting and Subtractin...
    - .NET LinkButton web control

     
    Accelerating Trading Partner Performance
     
    Competing on Analytics
     
    Cost Effective Scaling with Virtualization and Coyote Point Systems
     
    Five Checkpoints to Implementing IP Telephony
     
    Hosted Email Security: Staying Ahead of New Threats
     




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway