display none / remove style for asp.net code behind not working
<p>I've got a button on my page in code behind I do this:</p>

<p><code>btnSaveLineItems.Style.Add("display", "none");</code></p>

<p>But later I want to show that button so I tried this:</p>

<p><code>btnSaveLineItems.Style.Clear();</code></p>

<p>This doesnt appear to reshow the button...
The html markup in the beginning has a "style=display:none;" in the beginning of the page..
and it maintains that style even though I try to remove it?</p>

<p>Can anyone help with this...</p>

<p>When my page first starts up I have this:</p>

<p><code>btnSaveLineItems.Style["display"] = "none";</code></p>

<p>This renders like the following in HTML:</p>

<p><code>&lt;input type="submit" name="ctl00$MainContent$btnSaveLineItems" value="Save" id="MainContent_btnSaveLineItems" title="Save changes?" style="border-color:#4B6C9E;border-style:Solid;display:none;" /&gt;</code></p>

<p>Then an event happens (selected index changed event of a drop down box) where I then do this:</p>

<p><code>btnSaveLineItems.Style["display"] = "";</code> </p>

<p>I've also tried:</p>

<p>btnSaveLineItems.Style["display"] = "block";</p>

<p>and both render the same HTML:</p>

<p><code>&lt;input type="submit" name="ctl00$MainContent$btnSaveLineItems" value="Save" id="MainContent_btnSaveLineItems" title="Save changes?" style="border-color:#4B6C9E;border-style:Solid;display:none;" /&gt;</code></p>
