Subscribe: António Ribeiro's WebLog
Preview: António Ribeiro's WebLog

António Ribeiro's WebLog

Developer Consultant, Microsoft.

Last Build Date: Mon, 20 Jul 2015 16:19:28 +0000


Creating HTML markup using HTML Controls object model

Wed, 19 Jan 2005 08:00:00 +0000

Although ASP.NET provides a great object model for handling Web Controls and HTML Controls, I often see code that creates HTML markup directly, by manipulating strings. An example:   private string GetSomeHtml()  {    string html = "" + Server.HtmlEncode("Antonio Ribeiro's Web Log") + "";    return html;  } Despite being performant, this isn't easy to read or to...

Rendering n-column tables using the Repeater control

Wed, 12 Jan 2005 15:55:00 +0000

The ASP.NET Repeater control provides a template-based mechanism for rendering data using Data Binding. A basic usage sample can be found here . The control uses the tag for declaring HTML that should be rendered for each data item and a tag to put some HTML between items. It also supports an that...

New articles available !

Tue, 11 Jan 2005 19:05:00 +0000

Check Creating a Custom Placeholder to render and edit XML data using XSL templates (CMS) and Rendering n-column tables using the Repeater control (ASP.NET)    

Creating a Custom Placeholder to render and edit XML data using XSL templates

Tue, 11 Jan 2005 18:48:00 +0000

XMLPlaceholder Controls are a useful technique to handle structured data within a CMS Posting. Suppose you have a Book template containing an Authors placeholder. When a book has more than one author, you could store a comma-separated list of authors in a HtmlPlaceholder. The authoring interface would look like: Authors List: But ideally, the list...