LogoASPAlliance: Articles, reviews, and samples for .NET Developers
Xml Comments
by Andrew Mooney
Average Rating: 
Views (Total / Last 10 Days): 8745/ 23

Allow visitors to rate web pages and enter comments in XML format

Allow visitors to rate your web pages and enter their comments in XML format. Vistors can then view comments and ratings left by others in a DataGrid. You determine which pages should be rated by simple adding a link to the comment page. To see this example in action click the "Run Sample" link at the bottom of this page. The download contains the web page source in both C#.NET and VB.NET. Decide on a page name, this could be a title, filename, number, or any name you want to use. Simply place a link on your web page that passes the page name to the comments page.

A RegularExpressionValidator is used to limit vistor input from the TextBoxComment control. The acceptable inputs are upper and lower case letters a to z, numbers 0 to 9, spaces, periods, commas, and single quotes.

[ Run Sample ] | [ View Source ] | [ Download ]

©Copyright 1998-2021  |  Page Processed at 2021-12-05 6:00:20 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search