Wrox Programmer Forums
|
BOOK: Beginning ASP.NET Web Pages with WebMatrix
This is the forum to discuss the Wrox book Beginning ASP.NET Web Pages with WebMatrix by Mike Brind, Imar Spaanjaars ; ISBN: 978-1-1180-5048-4
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET Web Pages with WebMatrix section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 25th, 2013, 11:14 AM
Authorized User
 
Join Date: Dec 2010
Posts: 27
Thanks: 10
Thanked 0 Times in 0 Posts
Default Letting user manage content

Hi.
I am building a relatively simple site in WebMatrix for a client. It contains a News page, which the client should preferably be able to maintain himself, i. e. insert new news items, delete old ones etc. Could you please give me a hint or some general suggestions on how to go about it?
__________________
Regards,
Gudni G. Sigurdsson
 
Old January 25th, 2013, 11:46 AM
Wrox Author
 
Join Date: Dec 2011
Posts: 57
Thanks: 1
Thanked 19 Times in 19 Posts
Default

I would recommend that you read Chapter 11. It covers that topic exactly.
 
Old January 26th, 2013, 03:57 AM
Authorized User
 
Join Date: Dec 2010
Posts: 27
Thanks: 10
Thanked 0 Times in 0 Posts
Default

Hi, Mike.
Thank you for your reply. I have read chapter 11 of your book. In fact, I have read almost all of it, some parts more than once. I have done some experimentation with data access in Web Pages with WebMatrix as described in chapters 10-11. But to enable my client to maintain the News page himself, I thought I would have to provide him with something like an editor (maybe tinyMCE or CKEditor) to upload text and images to the News page. Am I missing something here?
__________________
Regards,
Gudni G. Sigurdsson
 
Old January 26th, 2013, 08:32 AM
Wrox Author
 
Join Date: Dec 2011
Posts: 57
Thanks: 1
Thanked 19 Times in 19 Posts
Default

What you provide your client depends on the requirement. If you have designed the News page as a layout template with structured sections of data eg Headline, Main image, Introduction, Reporter/Author, Body, Footnote, References etc, then you should provide form inputs for all those bits of information. You would probably provide <textarea> elements for larger blocks of text such as the body. You may have CSS files that will control the formatting and appearance, so you would not want your client to use a Rich Text Editor (RTE) to submit styled HTML that will override your predetermined styles.

On the other hand, your client might believe that they are a brilliant designer and they want control over the formatting of a news item. In that case, tinyMCE or something similar is exactly what you need. These RTEs are simply window dressing over a <textarea> element, so you would treat the input in exactly the same way when you come to insert it into the database - except that you will have to use Request.Unvalidated to refer to any form field that might contain HTML.

Does that help?
The Following User Says Thank You to Mike Brind For This Useful Post:
Gudni (January 26th, 2013)
 
Old January 26th, 2013, 11:25 AM
Authorized User
 
Join Date: Dec 2010
Posts: 27
Thanks: 10
Thanked 0 Times in 0 Posts
Default

Yes, that helps a lot. Thank you very much!
__________________
Regards,
Gudni G. Sigurdsson





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 6 - Letting the User Select a Theme jdlferreira BOOK: Beginning ASP.NET 4 : in C# and VB 5 June 10th, 2012 07:18 AM
Letting the user select a theme avi1 BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 2 October 3rd, 2010 01:04 PM
How to Change the page content Per User bex ASP.NET 2.0 Professional 9 January 16th, 2009 03:40 PM
different user to view different content Jophie BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 9 November 2nd, 2007 02:17 PM
User controls' content: Chapter 2 User Controls AGS BOOK: Professional ASP.NET 2.0 Server Control and Component Development ISBN: 978-0-471-79350-2 10 July 26th, 2007 05:36 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.