+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / How do I customize an asp:Button class?

How do I customize an asp:Button class?

2 posts, 0 answered
  1. Eric Larsen
    Eric Larsen avatar
    1 posts
    Registered:
    31 Jan 2006
    10 Apr 2013
    Link to this post
    How do I customize an asp:Button class?I have this bit of code in an ASPX file:[CODE]
    <div class="buttonContainer" style="clear:both;width:100%;text-align:left">
       <asp:Button ID="btnProceed" runat="server"  Text="Next" OnClick="ProceedButton_Clicked" Enabled="true" />
    </div>[/CODE]
    So, if I want to make the button bigger or bolder text, how would I do it? 
  2. Kaloyan
    Kaloyan avatar
    272 posts
    Registered:
    02 Dec 2016
    12 Apr 2013
    Link to this post
    Hi,
    Styling controls on simple .aspx page is a standard asp.net procedure and it is not directly relate to our product. However you can use the CssClass property on the asp:Button control with value of yourClass.
    Then you can refer to the class in your CSS file like this:

    .yourClass{
          
    }

    You need to also put a reference in the <head> tag of the .aspx page to point to your CSS file.

    Greetings,
    Kaloyan
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered