i create custom html controls or form control. can not find tutorial it. create new controls or override existing form control. example - override button , add icon button.
thanks
it not solution problem. dont want write this:
@using (html.beginform("actiontaken", "testcontroller")) { <button name="button" value="actionone" class="button" style="width: 200px;"> <img src=""/></button> <button name="button" class="button" style="width: 160px;" value="actiontwo"> <img src=""/></button> }
but want write like:
@html.buttonwithimage()
of course can create htmlhelper extension, question whether done button class, like:
class mybutton : control{ public string icon{get; set;} public void render() { } }
or better still mybutton child of html button. expand on icon , override render method...