asp.net mvc 4 razor, time to learn something new this year.
-
Time to learn something new this year. So ASP.net MVC 4 Razor is the way to go? I want to create responsive web designs from this point forward, done with the old stuff now. Sure looks intimidating, I created the starter project, pretty neat how it creates the database for you. Just wanted to get some feedback before I dive into this.
-
Time to learn something new this year. So ASP.net MVC 4 Razor is the way to go? I want to create responsive web designs from this point forward, done with the old stuff now. Sure looks intimidating, I created the starter project, pretty neat how it creates the database for you. Just wanted to get some feedback before I dive into this.
I would like to do as much as possible to tweak my existing web sites to a responsive design. I guess this can be done via CSS, and a lot of brain work. Or would it be better to just create a mobile version for small phones? What are you guys doing with your classic web sites? and the small phone issue like the iPhone 4 or 5.
-
I would like to do as much as possible to tweak my existing web sites to a responsive design. I guess this can be done via CSS, and a lot of brain work. Or would it be better to just create a mobile version for small phones? What are you guys doing with your classic web sites? and the small phone issue like the iPhone 4 or 5.
It's often not possible to "tweak" a non-responsive site into one that is, it normally requires a full UI and css redesign from the ground up. You should be able to keep your functionality and code, just change the markup. If you do get a good responsive design then you can use the same site for mobile and desktop.
-
It's often not possible to "tweak" a non-responsive site into one that is, it normally requires a full UI and css redesign from the ground up. You should be able to keep your functionality and code, just change the markup. If you do get a good responsive design then you can use the same site for mobile and desktop.
I started experimenting with the master pages of one of my web apps. Thought I did a great job with the CSS, until I got to testing on an IPad and Safari. So I sort of wasted a day of work, or saved a week. I'm starting to think that perhaps just a mobile version using m.domainname.com would be a better solution, and just do device detection. Perhaps this is a good reason to learn MVC, which is so foreign looking to me. Your right on the money, it needs to be built from the ground up.
-
Time to learn something new this year. So ASP.net MVC 4 Razor is the way to go? I want to create responsive web designs from this point forward, done with the old stuff now. Sure looks intimidating, I created the starter project, pretty neat how it creates the database for you. Just wanted to get some feedback before I dive into this.
Asp.Net MVC is very neat. Initially it is hard to get around if you're from Asp.Net WebForms, but once you get a hang, you will never look back. In fact, you will hate WebForms. :) For responsive design, you can use Twitter BootStrap[^] It is basically the ground framework for a good looking site, with built-in responsive design support. It will save you a lot of time and effort. There are many CSS frameworks on the web that support responsive design, a simple Google search should reveal them. All in all, Asp.Net MVC is a great framework to invest in, and it is here to stay.
--- H.B.
-
Time to learn something new this year. So ASP.net MVC 4 Razor is the way to go? I want to create responsive web designs from this point forward, done with the old stuff now. Sure looks intimidating, I created the starter project, pretty neat how it creates the database for you. Just wanted to get some feedback before I dive into this.
MVC4 is actually quite old now. MVC 5.2.2 is the most recent version, and MVC6 is in development (for release later this year). You can download the free Community Edition of Visual Studio 2013 for personal use to learn MVC 5.x, or you can download the Visual Studio 2015 CTP if you want to get a head start on MVC6.
-- Where are we going? And why am I in this handbasket?
-
MVC4 is actually quite old now. MVC 5.2.2 is the most recent version, and MVC6 is in development (for release later this year). You can download the free Community Edition of Visual Studio 2013 for personal use to learn MVC 5.x, or you can download the Visual Studio 2015 CTP if you want to get a head start on MVC6.
-- Where are we going? And why am I in this handbasket?
My action pack or MSDN subscription expired for VS2013, I'll try the community version and give 5 a spin. I was just working on MVC 4 just now, watching the Code Project Article "learn in 7 days" So I guess I will dive into this this week, and build my website in it first. Thanks for the version info, I didn't know about that. Learn MVC (Model View Controller) step by step in 7 days – Day 1[^]
-
Asp.Net MVC is very neat. Initially it is hard to get around if you're from Asp.Net WebForms, but once you get a hang, you will never look back. In fact, you will hate WebForms. :) For responsive design, you can use Twitter BootStrap[^] It is basically the ground framework for a good looking site, with built-in responsive design support. It will save you a lot of time and effort. There are many CSS frameworks on the web that support responsive design, a simple Google search should reveal them. All in all, Asp.Net MVC is a great framework to invest in, and it is here to stay.
--- H.B.
I was just watching the training video on Code Project Learn MVC (Model View Controller) step by step in 7 days – Day 1[^] It makes sense to me now. MVC would be easier for me after the learning curve, and I can see how it would reduce my development time, and make projects more profitable, plus produce that responsive design I was looking for. I looked at the Twitter Bootstrap website, will download a copy and see if that's a good start point for me, and figure how to merge that in. Thanks for the positive feedback on my choice to move forward this year, and the pointers! I'm going to have a thousand questions here. like how to place an image element in the view.
-
I was just watching the training video on Code Project Learn MVC (Model View Controller) step by step in 7 days – Day 1[^] It makes sense to me now. MVC would be easier for me after the learning curve, and I can see how it would reduce my development time, and make projects more profitable, plus produce that responsive design I was looking for. I looked at the Twitter Bootstrap website, will download a copy and see if that's a good start point for me, and figure how to merge that in. Thanks for the positive feedback on my choice to move forward this year, and the pointers! I'm going to have a thousand questions here. like how to place an image element in the view.
Sure thing! If you have any question, feel free to ask, me and many other members are willing to help. Google also has an abundance of questions and answers. Just to give you a little perception on the view: Your controller will pass in a "model" to the View. The model can be your domain object, or a view model. I don't want to go into too many details and make it more confusing. You will learn these things as you get more into Asp.Net Mvc. The view is a template with all the html and razor code. A sample template will be like this:
@Model.Name
The razor templating engine then parses the HTML, fills in the model properties from the controller, and renders the raw HTML in the browser. Asp.MVC does all that automatically on the backend. This produces clean and concise HTML, and lets you make it as semantic as you like. It is all very beautiful.
H.B.
-
Sure thing! If you have any question, feel free to ask, me and many other members are willing to help. Google also has an abundance of questions and answers. Just to give you a little perception on the view: Your controller will pass in a "model" to the View. The model can be your domain object, or a view model. I don't want to go into too many details and make it more confusing. You will learn these things as you get more into Asp.Net Mvc. The view is a template with all the html and razor code. A sample template will be like this:
@Model.Name
The razor templating engine then parses the HTML, fills in the model properties from the controller, and renders the raw HTML in the browser. Asp.MVC does all that automatically on the backend. This produces clean and concise HTML, and lets you make it as semantic as you like. It is all very beautiful.
H.B.
Cool, I was going to ask if I should use razor. Installing that VS2013 Community Edition right now, and will start again today. I've always had regrets about adopting asp.net webforms versions, so much of it was just stupid. Was considering that Ruby on Rails or just going back to PHP and Linux, but I see a lot of PHP sites that I frequent using MVC now. I think Best Buy is now MVC as well.