<style type="text/css"> .wrap { white-space: normal; Font-Size:large ; Width:100px; Height: 50px; } </style>
<asp:Button ID="btnCat1" runat="server" Text="Button" OnClick="catClick" CssClass="wrap" />
Button1.Text = "SET_YOUR_BUTTON_TEXT"; //you can check something like to see if text length is more.. Button1.CssClass = Button1.Text.Length > 10 ? "btnSmall" : "btnBig";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)