Monday, September 26, 2022

Adding an image and text both in asp.net button

  <asp:Button ID="btnTestSample"   Width="35"    Height="25" runat="server" Text="lb"  CssClass="cssTestSample"   />

 <style type="text/css">

    .cssTestSample{

        border: 1px solid #563d7c;

        border-radius: 5px;

        padding:     0px 25px 0px 3px;

        background: url(../Images/MyTestImage.png) 

            left 18px top 5px  no-repeat ;

   }


No comments:

Post a Comment

How to add the .NET MAUI App Accelerator in Visual Studio

 To add the .NET MAUI App Accelerator in Visual Studio, follow these steps: Prerequisites: Ensure you have Visual Studio 2022 (17.3 or lat...