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

后端 未结 6 1279
野性不改
野性不改 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 09:08

    There isn't one but that shouldn't stop you from building one yourself.

    Even though the MVC futures project doesn't appear to be moving forward at all or supported, it's not too hard to download the source, and grab the Submit button helper (and it's supporting code) to roll your own.

    It's exactly how we created the base of our SubmitButton helper for a large MVC 4 project.

提交回复
热议问题