Customize Button control in asp.net

Satyapriyanayak
Posted by Satyapriyanayak under ASP.NET category on | Points: 40 | Views : 976
<asp:Button ID="btnProceed" runat="server" Text="Next"
OnClick="ProceedButton_Clicked" Enabled="true" Font-Bold="True"
ForeColor="#FF9933" Height="100px" Width="200px" />


using css

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm4.aspx.cs" Inherits="WebApplication18.WebForm4" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
<style type="text/css">
.TestStyle
{
background: orange;
border: solid 1px grey;
font-family: Arial, sans-serif;
font-size: 20px;
font-weight: bold;
color: #001563;
height: 25px;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>

<asp:Button id="btnProceed" CssClass="TestStyle" Text="Next" runat="server"/>
</div>
</form>
</body>
</html>

Comments or Responses

Login to post response