User control that returns formated text
<p>I am looking for a way to return some formatted text via a user control in ASP.NET C#.  This is basically what I am looking for:</p>

<p>Call a user control such as</p>

<pre><code>&lt;mycontrol:formatedtitle id="blah" runat="server"&gt;Text to format&lt;/mycontrol:formatedtitle&gt;
</code></pre>

<p>And then have it return some formatted HTML such as</p>

<pre><code>&lt;div class="blah"&gt;Text to format&lt;/div&gt;
</code></pre>

<p>I have been reading up online on creating user controls but nothing comes close to what I am looking for.  I was able to do this in PHP easily by calling a command and having it return the fomatted text such as:</p>

<pre><code>&lt;? print_section_start("Text to format"); ?&gt;
</code></pre>
