Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML.Button in ASP.NET MVC

Starting from ASP.NET MVC Preview 3, HTML.Button ( and other related HTML controls) are no longer supported.

The question is, what is the equivalent for them? I've an app that was built using Preview 2, now I have to make it compatible with the latest CTP releases.

like image 881
Graviton Avatar asked Sep 12 '08 15:09

Graviton


People also ask

What is HTML ActionLink in MVC?

Html. ActionLink creates a hyperlink on a view page and the user clicks it to navigate to a new URL. It does not link to a view directly, rather it links to a controller's action.

What are HTML helpers in MVC?

In MVC, HTML Helper can be considered as a method that returns you a string. This string can describe the specific type of detail of your requirement. Example: We can utilize the HTML Helpers to perform standard HTML tags, for example HTML<input>, and any <img> tags.


1 Answers

Just write <input type="button" ... /> into your html. There's nothing special at all with the html controls.

like image 194
Joel Coehoorn Avatar answered Oct 21 '22 17:10

Joel Coehoorn