Does anyone know of a CSS Adapter for the LinkButton control for ASP.Net 2?
Update:
We are trying to use CSS Buttons. We are using this approach: http://www.oscaralexander.com/tutorials/how-to-make-sexy-buttons-with-css.html For that we need to render the tags which the link button doesn't do.
Possible Solution using Adapter
We created an adapter for the linkbutton. Then changed the RenderContents as follows:
protected override void Render(HtmlTextWriter writer) {
LinkButton linkButton = this.Control;
linkButton.Text = String.Concat("<span>", linkButton.Text, "</span>");
base.Render(writer);
}
This seems to work and requires minimum effort.