Tags
Most time you want to have nice image button. I use Telerik images
http://demos.telerik.com/aspnet-ajax/button/examples/embeddedicons/defaultcs.aspx
and all the nice images are in one png
To use it you need css:
a.rbCancel { height: 20px; width: 20px; margin: 5px; display: block; background-image: url("../PublishingImages/rbPredefinedIcons.png"); background-position: -72px 0 !important; } a.rbExtract { height: 20px; width: 20px; margin: 5px; display: block; background-image: url("../PublishingImages/rbPredefinedIcons.png"); background-position: -280px 0 !important; }
.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, “Courier New”, courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }
and your link buttons
<asp:LinkButton ID="btnExtract" runat="server" CssClass="rbExtract" CommandName="Extract" CommandArgument='<%# DataBinder.Eval(Container.DataItem,"OrderNo") %>' ToolTip="Click to Extract" /> <asp:LinkButton ID="btnCancel" runat="server" CssClass="rbCancel" CommandName="CancelOrder" CommandArgument='<%# DataBinder.Eval(Container.DataItem,"OrderNo") %>' OnClientClick="return confirmPop();" ToolTip="Click to Cancel" />
.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, “Courier New”, courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }
if you want to have hover effect, add
a.rbExtract:hover { background-image:url(images/SaveButton20_hover.png); }
.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, “Courier New”, courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }