AspAlliance.com LogoASPAlliance: Articles, reviews, and samples for .NET Developers
URL:
http://aspalliance.com/articleViewer.aspx?aId=54&pId=-1
Xml Comments
page
by Andrew Mooney
Feedback
Average Rating: 
Views (Total / Last 10 Days): 8460/ 10

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-2024 ASPAlliance.com  |  Page Processed at 2024-04-19 12:18:06 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search