Three ways to submit form data - Course ASP.NET 4 and Visual Studio 2010 - Lesson 5
In the video, we cover three ways of submitting form data. First we look at the simple button. We created a form that asked the user for the first name, last name, and language of choice. We add an event associated with the submit button to read the user selections and display them on the page. We view source to see what ASP.NET generated for the form. Then, we removed the simple button and added a link button instead. We associated an event with that button and submitted the user input in the same way. Viewing source tells us that that link button is using an anchor tag with the help of JavaScript to submit the form data. Finally, we removed that link button and added an image button. We chose the image URL from an image that I have already added to the site. We associate an event with the image button and submitted the form data. The source of the html page shows us that the image button will render as an input with type image.