How can I use a:
with an asp.net button?
Thanks Anders Smedman, your code sure did the job. here is the C# code if anyone needs it.
private void FixGlyph(PlaceHolder ph, Button btn, string iconClass, string customLabelStye = "")
{
if (btn.Visible)
{
var g = new HtmlGenericControl();
g.ID = "labelFor_" + btn.ID;
g.TagName = "label";
g.Attributes.Add("for",btn.ClientID);
g.Attributes.Add("class","" + btn.CssClass +"");
if (customLabelStye != "")
{
g.Attributes.Add("style",customLabelStye);
}
g.InnerHtml = " " + btn.Text;
ph.Controls.Add(g);
btn.Attributes.Add("style","display:none;");
}
}