Displaying CSS properties and values of a HtmlControl
<p>I have a <code>&lt;div id="Result" ... &gt;</code> with a bunch of CSS properties and values and I would like to display them when I click a button. This is what I currently have:</p>

<pre class="lang-cs prettyprint-override"><code>protected void Button1_OnServerClick(object sender, EventArgs e)
{
    for (int i = 0; i &lt; Result.Style.Value.Length; i++)
    {
        Result.InnerHtml += Result.Style.Value[i];
    }
}
</code></pre>

<p>The code does display them, however, they are all displayed in a sequence of characters. I would like to get them displayed as properties and values, both with different accessing variable and all pairs on seperate row.</p>

<p>I messed with it for a good while but I can not figure it out.</p>
