ASP.NET Code
  Home arrow ASP.NET Code arrow Page 2 - ASP.NET Guestbook
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? 
ASP.NET CODE

ASP.NET Guestbook
By: R. Abhiram Vikrant
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 318
    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
     
     
    ADVERTISEMENT


    ASP.NET Guestbook - Viewing the Results


    (Page 2 of 8 )


    Make sure you have included ASPNET user in this database and enabled the necessary permissions. Run the above script and you might be seeing the result set in the result pane of the query analyzer, like the one given below. 

    ASP.Net Guestbook

    That’s all with the database. If you need any help, please refer to online help or the software documentation.
      
    The front end consists of two pages:
    - postcomments.aspx, for posting feedbacks
    - viewcomments.aspx, for viewing all the feedbacks

    Guestbook:

    1) Open the Visual Studio.Net
    2) Start a new ASP.NET web application
    3) Name the web application as guestbook
    4) You will be presented with the default web form as Webform1.aspx in the solution explorer
    5) Rename it as postcomments.aspx

    Posting Feedback:  (postcomments.aspx)
                                  
    The postcomments.aspx page contains visual controls to let the viewers post their opinions. Given below are the controls involved in this page, their names and their values. Before that, have a peek at the simple front end page - postcomments.aspx. 

    ASP.Net Guestbook

      

    CONTROL

    NAME OF THE CONTROL

    REMARKS

    Asp:Textbox

    txtName

    To get the name of the visitor
    Asp:Textbox 

    txtEmail

    To get the Email Id
    Asp:Textbox 

     txtComments

    To get the comments
    Asp:DropDrownList

    ddnRating

    To rate the site
    Asp:LinkButton

     llPost

    To post the comments

     

    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





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