RE: MVC .NET Labelfor
May 30, 2016 at 8:31 pm
(This post was last modified: May 30, 2016 at 8:32 pm by bennyboy.)
(May 30, 2016 at 1:10 pm)KevinM1 Wrote: In contrast, I hated web forms. The page life cycle, in particular, was idiotic. MVC is much, much simpler and elegant.
Yes, I struggled with the page life cycle, because I didn't understand it. I can almost guarantee that any new Web Forms programmer will have some frustrations. That being said, now that I understand how pages are built, I really can't think of any useful thing I can't do-- and very quickly.
Example: I want to let users upload images, then record a slideshow. I make a user control for uploading the images, using jQuery UI for sliders which I will use to scale and position the images, then I will use a C# codebehind on a button event to crop and process the uploaded image. Now, I make a "record slideshow" control which displays each picture in turn and checks if the page is being viewed by an Android device (i.e. running my Android app which has an embedded browser). Javascript records the times at which I change pages, synching them with the audio I'm recording.
The result: in 3 minutes, I can make a slideshow, with Audio. Time from conception to online functionality: about a day.
I don't know much about MVC, but I can almost guarantee you don't know anyone who could do that in a day. That's because design with a good web forms programmer is lightning fast. And sometimes, development speed matters.