Asp.Net (Html 5) Button
retracting what i wrote lately, i had postback issues, seemed that the simple sln was the thing: [ ParseChildren ( false )] [ PersistChildren ( true )] public class html5Button : Button { protected override string TagName { get { return "button" ; } } protected override HtmlTextWriterTag TagKey { get { return HtmlTextWriterTag .Button; } } // Create a new implementation of the Text property which / / will be ignored by the parent class, giving us the freedom // to use this property as we please. public new string Text { get { return ViewState[ "NewText" ] as string ; } set { ViewState[ "NewText" ] = HttpUtility .HtmlDecode( value ); } } protected override void OnPreRender(System. EventAr