This project is read-only.
Project Description

A small .NET 2.0 Windows application.
SharePoint web part developers might love this utility.

Features

- Converts HTML, CSS, JavaScript and other types of web content to C# code, mainly for use in the Render method of web parts;
- Set the name of the HtmlTextWriter instance;
- Choose between HtmlTextWriter only code and StringBuilder code;
- Copy result to clipboard.

Example

<div class="myCssClass">Hello World!</div>
converts to
writer.Write("<div class=\"myCssClass\">Hello World!</div>");



Text web content

HtmlTextWriter Utility v1.0 Screenshot 1.png


Converted to C# code using only an HtmlTextWriter instance

HtmlTextWriter Utility v1.0 Screenshot 2.png


Converted to C# code using only an HtmlTextWriter instance and a StringBuilder

HtmlTextWriter Utility v1.0 Screenshot 3.png


Download

HtmlTextWriter Utility v1.0

Last edited Nov 9, 2007 at 4:34 PM by JonasButt, version 10