.NET Webforms => MVC, General Discussion...
Hi Folks,
I decided to go at building a mobile site for my company website, and for my desktop site, I developed that using .NET webforms and got used to working with controls such as asp:button, asp:label, and those sort of controls, also GridView & DetailsView, etc, etc. My website involves a lot of data display and transactional sort of information, so I've become fairly adept at binding filtered data to GridViews, etc.
Anyway, back to the current matter at hand, over the weekend, I downloaded a sample mobile website, which was developed using MVC. I've been able to edit the css files and the content files to give myself a really handy looking mobile website.
The only thing I'm not "getting" at the mo, is the way the solution doesn't contain any aspx files or controls such as asp:Label or asp:Button, instead it comprises of a chtml file and what I would consider to be "old" html controls such as <a href>...
On first exposure to MVC, I'm just not "getting it", I'm not seeing how I can use the experience I have with .NET, as in accessing controls programmatically, from a codebehind page etc, and managing what controls and what data the user can see and use, I'm not seeing how it all hangs together using MVC. Even something as simple as putting a text label on a page and controlling it with a button, doesn't seem to be as easy as it was using webforms and an aspx page?
I guess I'm asking would anyone have any advice for an MVC virgin?!?