Looking for a Html.SubmitButton helper that would accept class attributes in MVC3

后端 未结 6 1321
野性不改
野性不改 2020-12-31 08:42

I would like to use a helper for Submit button in MVC3. Is such a thing available? If not, then does anyone know where I could get some code for this. I would like one that

6条回答
  •  清歌不尽
    2020-12-31 08:55

    Isn't it simple just to write

    In MVC, there are no such things like controls, that carry much application logic. In fact, it is possible but not recommended. What i want to say is that Html helpers are just making Html writing more comfortable and help you not write duplicate code. In your particular case, i think it is simpler to write direct html than that with helper. But anyways, if you want to, it is contained in MVC Futures Library. Method is called SubmitButton

提交回复
热议问题