asp:Button - how to opt out of Skin Manager

2 posts, 0 answers
  1. Bill Anderson
    Bill Anderson avatar
    9 posts
    Member since:
    Aug 2009

    Posted 15 Oct 2009 Link to this post

    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
  2. Bill Anderson
    Bill Anderson avatar
    9 posts
    Member since:
    Aug 2009

    Posted 15 Oct 2009 Link to this post

    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!
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top