That's what I thought the ActionResult really does.
Yes, I'm coming from ASP.NET WebForm development, it also require me to change my way of thinking too. LOL! I had completed the MVC tour at
and made the web-application from there. The problem I have is it is only basic and doesn't have additional tour (for immediate users & advanced users). Another problem I had is I'm deaf and I can't use the video clip-arts that show us how it works, no subtitle there. :-/
Thank you for the good example. That is very helpful. I have two more questions.
1) In the example you provided, if both buttons are "type='button'" instead of "type='submit'", how does that works? ((I prefer this method cuz the web-browser like IE does the default submission on the 1st submit button which I don't want. The 2nd example below can tell you why is that.))
2) What about this one, how does that work? Some of the webpages I use have this concept. ((In this example, VIN-Decoding button had to be clicked to get year, make, model and trim [drop-down selections] before the web-users enter mileage, select guide-book options and clicking the Get-Book-Values button.))
--snip--
<form id="form1" method="post" action="~/my/dothis.aspx">
<input id="text" name="text" />
<input id="number" name="number" />
<input type="button" value="Decode VIN" />
<input id="mileage" name="text" />
<!-- Checkboxes for Guide Books (BlackBook, Kelley Blue Book, etc. -->
<input type="button" value="Get Book Value(s)" />
</form>
--snip--
Thanks man!