Last post Jun 29, 2013 12:49 PM by Mikesdotnetting
Jun 29, 2013 01:11 AM|ssvikramuk|LINK
Any one please clarify me, what is a class file, when to use?. Also When to use MVC?
Jun 29, 2013 01:16 AM|Rion Williams|LINK
Regarding Class Files
A class file is the most basic file found within .NET Development and can basically be used for anything that actually contains server-related code and are eventually compiled into DLLs that will comprise your applications.
You can think of these as the building blocks for all of your development needs.
(You can see an example here of many of the common uses of class (.cs) files.)
ASP.NET MVC is Microsoft's newest fully-featured development paradigm which takes a different approach to development than its Web Forms predecessor. It provides a larger level of control over applications than Web Forms and an an improved "seperation of
concerns" within applications. However, as many have mentioned in this discussion, it is not meant to replace Web Forms by any means but simply offers an alternative.
The Model View Control paradigm has been around for a long time and has been used within many different environments and languages (such as Ruby) and it is basically made to suit the web (as it is designed to be stateless unlike stateful Web
Forms). It's learning curve is a bit higher than that of Web Forms, due to the lack of "Controls" and having to handle things like events in a more manual fashion (which does allow for more flexbility and control).
There really is no "right time" to use it and it is more of a preference, however I would consider it to have a larger learning curve than Web Forms might be and it may not be the best thing to jump into for beginners.
Jun 29, 2013 02:00 AM|ssvikramuk|LINK
I am using C# razor webmatrix for the past 1.5 years. I would like to enhance my knowledge. What is the next step?
Jun 29, 2013 02:12 AM|Rion Williams|LINK
It really all depends on your interests.
Web Forms are still thriving and will likely continue to within the future and MVC is continuing to grow and flourish at an incredible rate. Both of these major .NET development technologies would be great places to start.
There are also a tremendous amount of other related .NET technologies like SignalR, Web API, SPA and others than you can discover and learn about from this very site.
If you are looking for some additional sites for resources and to maybe pick up some new technologies or get started, I would recommend checking out the ones listed below :
I've always found that the best way to learn is simply to get your hands-dirty and start coding. You'll teach yourself along the way (search engines and tinkering can be your best friends).
It can also help a great deal to actually "read" code, so you may want to go somewhere like
CodePlex and cull through some open-source projects that interest you.
Jun 29, 2013 02:45 AM|ssvikramuk|LINK
my final question, what is the difference between asp.net and asp.net c# razor?. Right now am using webmatrix c# razor for all of my projects. From using C# Razor what are all the benefits are there and how can i still improve in my area.
Jun 29, 2013 04:30 AM|Mikesdotnetting|LINK
If you have outgrown Web Pages, the recommendation from Microsoft is to move to MVC. "Outgrow" typically means that your application needs multiple people working on it at the same time, or you feel that you need to include automated testing and other enterprise-development
See this article about how to migrate to MVC and why you might want to: http://msdn.microsoft.com/en-us/magazine/hh148144.aspx
Jun 29, 2013 04:46 AM|ssvikramuk|LINK
Thanks Mike. With help of your book i learnt Web.matrix. Thanks for your great contribution. Planning to move using C# razor MVC. Where can i start? Could you send me some tutorial links,please.
Jun 29, 2013 08:57 AM|Rion Williams|LINK
The MVC Section of this site (ASP.NET) has basically all of the information that you could need for learning more about MVC in general including articles, tutorials, walkthroughs and a variety of other recommended
If you are looking for specific tutorials regarding Getting Started with MVC, one of the most well regarded and complete MVC-based tutorials would be the ASP.NET MVC Music Store tutorial,
which you can find under the MVC section of this site.
However, any of the tutorials on this site should be great stepping stones to get you building your own complete MVC applications in no time.
You can find a few other resources listing off countless other MVC-based tutorials below:
I would definately recommend the trying the MVC Music Store Tutorial along with the other ones available on this site (ASP.NET) first and if you are still looking for more information after that, check out some of the other links I provided.
Jun 29, 2013 09:14 AM|ssvikramuk|LINK
Thanks Rion. I am really greatful to you. Sorry to urge you again, my client requirement is he want to build an web app using webmatrix MVC, but i have expereience only in C# Razor. Is the MVC is totally new to my area?. Because i dont have knowledge about
Definitlely I will go thorugh the music store app.
Thanks for understanding. Kindly advise me on this.
Jun 29, 2013 09:34 AM|Rion Williams|LINK
MVC is going to be a different paradigm than some of the WebMatrix applications that you are currently used to as it is consists of three basic areas, the Model, the View and the Controller as opposed to WebMatrix which basically uses the Model / Controller
within the actual Views themselves.
The tutorials listed above will help you understand this better and I don't think that you will regret it. MVC is an incredible method of developing applications and once you better understand how to use it.
Jun 29, 2013 09:38 AM|ssvikramuk|LINK
Thanks much Rion
Jun 29, 2013 10:09 AM|ssvikramuk|LINK
MVC works with webmatrix or visual studio?
Jun 29, 2013 12:49 PM|Mikesdotnetting|LINK
MVC works with webmatrix or visual studio?
WebMatrix doesn't support MVC development. You need Visual Studio. You can get the Express version free here: http://www.microsoft.com/visualstudio/eng#products/visual-studio-express-for-web