This is a migrated thread and some comments may be shown as answers.

asp:Button - how to opt out of Skin Manager

1 Answer 61 Views
SkinManager
This is a migrated thread and some comments may be shown as answers.
Bill Anderson
Top achievements
Rank 1
Bill Anderson asked on 15 Oct 2009, 04:26 PM
Hi,

I have an asp:button control and i have it's style set to display:none. 

<asp:Button runat="server" ID="btnExport" style="display:none" OnClick="btnExport_Click" />

here is how it is rendered to the client:

<input type="submit" name="ctl00$m$g_d6cbcf9b_0316_4b3a_a32b_f7551a059317$ctl00$btnExport" value="" id="ctl00_m_g_d6cbcf9b_0316_4b3a_a32b_f7551a059317_ctl00_btnExport" style="display:none" />

BUT...when the page renders, the button is not visible EXCEPT for the very right edge (which the SkinManager adds once the paged is loaded). Attached is an image showing the barely partially rendered button.

How do i correct this? can i have the button register itself to opt out? Also, my SkinManager control is in a master page.

thanks!
bill

1 Answer, 1 is accepted

Sort by
0
Bill Anderson
Top achievements
Rank 1
answered on 15 Oct 2009, 09:18 PM
I found the answer myself.

instead of putting an inline style on the control, i put a CssClass="hidden". That did the trick.

<style>
.hidden
{
display:none;
}
</style>

thanks!
Tags
SkinManager
Asked by
Bill Anderson
Top achievements
Rank 1
Answers by
Bill Anderson
Top achievements
Rank 1
Share this question
or