What is the MVC Futures Library? - c#

On Stack Overflow, I've seen a few people referring to the MVC Futures library
What is this project? How do I use it? Where is the documentation?

Check Eilon Lipton's Blog :
In this blog post I'll introduce you
to a feature that's not even part of
the main ASP.NET MVC download. It's
part of the separate MVC Futures
download, which includes prototypes of
features that we're thinking of
including in a future version of
ASP.NET MVC.

There is no documentation because it is very early prototype work. We do post the source code so if you're really interested, you can figure it out. Over time, we'll start to blog about it and provide samples. Right now, our focus is on the main product. We post the futures to provide a way for those who really want to dig into the source to provide feedback on what we're thinking about for the future.

Take a look at this blog. It highlights areas of the MVC Future
http://msmvps.com/blogs/luisabreu/archive/tags/MVC/default.aspx

Related

ASP.NET MVC2 Areas/Administration and Working it all together

I am new to asp.net mvc in general and have yet to build a fully functional application. The main reason for this is I couldn't get my head around building administration areas.
I am now looking at MVC2 and have noticed this new feature called areas, I have created a sample application with an area called Announcements (essentially a blog post) does anyone know where a simple example may exist or could you provide one to do the following:
Show a working Admin area for Posts/Announcements.
Show how to display the posts/announcements to the public.
I assume these concepts are simple enough to do and I am probably struggling because I am looking at it from a web forms way.
Any help would be greatly appreciated.
It sounds like you are struggling with some of the basic concepts of MVC. Scott Hanselman's NerdDinner tutorial would probably be very beneficial to you. It goes over the fundamentals. The tutorial is for MVC 1, so "Areas" are not explained, but once you understand the basic MVC concepts "Areas" should come naturally.

Asynchoronous action calls with asp.net mvc

I'm looking into microsoft's version of MVC as a framework for a site redesign that I'm about to begin.
I am not totally new to MVC, I worked on a java app using MVC. We used the DOJO javascript library to make asynchronous calls back to the actions to update views.
What are some of my choices to do the same in .net MVC?
I'd like an excuse to get my hands dirty with jQuery, is this a good one?
JQuery is definitely useful for this. If you or your company has any 3rd party control such as the Telerik RadControls for ASP.NET you can give those a try too. I think they are free for beta right now.
However, the best starting point is always looking at code that already exists. There are also tons of examples of AJAX with MVC all over the net.
Nikhil Kothari's Example
David Hayden's Example 1
David Hayden's Example 2
Scott Hanselman's Example
Go download the NerdDinner example that ScottGu, ScottHa etc. worked on for their book.
jQuery is one of the most widely used javascript frameworks used with ASP.Net MVC, also check out ExtJs. We use ExtJs at work and I think its been documented well and its very easy to use. The jQuery community is a lot bigger though so I would say its a safer bet
Sure you should go with JQuery..You have already experience in MVC, I think you will not take much time to understand JQuery.
http://visualjquery.com/

Been a LAMP developer for years, now transitioning to the Microsoft Web Stack. Where do I begin?

I've always worked with the standard Linux web stack (linux, apache, php, python, mysql) but have been given a great job opportunity working with a group that works with the Microsoft Web Stack (IIS, ASP.NET, MSSQL, C#).
There seems to be a pretty good Microsoft following here on SO. Where should I begin? Specific books, tutorials, online resources are appreciated.
ASP.NET MVC will probably seem more familiar to you than ASP.NET WebForms. And honestly, I think that most pro-shops are going to move towards it over the next 5 years.
There are some really good tutorials (the kind that WebForms still doesn't have) at this site.
http://www.asp.net/Learn/mvc/
MSSQL (other than some tweaks to syntax) and IIS will probably be less of a hurdle, unless you'll specifically be administering them. I'd focus on learning C# and ASP.NET.
A good resource for C# is the MSDN C# tutorials.
A good resource for ASP.NET is the ASP.NET Quickstart Site.
RampUp is Microsoft's intro learning site. There are learning paths based on the background of the developer (like you for a LAMP stack)
http://msdn.microsoft.com/en-us/rampup/default.aspx
Additionally, the Asp.Net site has a bunch of tutorials and videos
http://www.asp.net/learn/
The data access tutorials available here from the ASP.NET website are as good a place as any for the experienced IT professional to learn about SQL Server data access in ASP.NET.
Would recommend www.learnvisualstudio.net great for staters.
If books are your best learning source then some I found helpful:
Pro C#
Pro ASP.NET
CLR via C#
The third book is about the common language runtime (what executes compiled C# code).
ASP.Net has a few different approaches. There's inline coding (much like PHP and ASP Classic), code behind and MVC.
To start out I would just stick with inline coding. Working with ASP.Net controls and view states is pretty hairy at first so I'd get familiar with the syntax to start and then move on.
Lot of good web sites in this SO thread. I very much lke MSDN Virtual Labs. They have them on just about every technology in the stack and they let you get your hands on the technology and play around.
You should definitely read a good quality book, about C#, I would recommend a C# 3.0 in a Nutshell, Third Edition book, from O'Reilly.
Then you should look into some MS stack specific pages, as is the CodeProject (www.codeproject.com/) site.
At the end you should start read some interesting blogs, on technologies you will work with.
You definitely should not miss the following ones:
weblogs.asp.net/scottgu/
www.hanselman.com/blog/
haacked.com
That would be for a start. :)
(sorry for missing links, but SO say I am a new user, and I can post only one link. :( )
I would suggest you read C# in Depth by Jon Skeet, who is a user here at SO. It will definitely help you master C#. The rest is gravy.

MVC or Webform Architecture for new site

I'm developing a website , job portal. I have 2-3 years of ASP.NET webform development experience,
I want to create a professional job portal site (to improve and learn more) but trying to decide on best architecture. Any suggestions or advice will help...
Thanks
Well, there are a number of ways to answer this question, and I'm sure many others will chime in. I'll just say that since your goal is to improve and learn more, and you already have 2-3 years of webform experience, this might be a good opportunity for you to learn MVC. Then you will have experience in both, and can make more informed decisions regarding the best architecture for future projects.
Happy learning!
Whilst nobody can tell you exactly what to do, the team I manage is about to release a new CMS / Job portal using ASP MVC. MVC gives us excellent testability and scalability out of the box and it can be quickly combined with tools such as nHibernate / windsor (IOC) / nCache / jQuery - this ensures that you have a wealth of resources on the internet to help accelerate your development and skill. You can also embrace standards such as XHTML 1.1 strict, which is almost impossible with ASP.Net webforms due to the auto generated HTML
1 other advantage is that you also get away from the dreaded ASP.Net viewstate.
Use ASP.NET MVC if you want to:
learn the ASP.NET MVC framework
use jQuery or similar libraries
really learn web-languages (HTML, CSS, JavaScript)
use Test Driven Development
have a clean separation of concerns
If you don't have the time or will to learn to use the ASP.NET MVC framework correctly, stick with ASP.NET WebForms.
My answer is almost always "ASP.NET MVC." The amount of flexibility and features and testability and maintainabilty and ... heavily outweigh WebForms.
WebForms has the advantages of a rich ecosystem of existing controls and documentation, and is really powerful for some kinds of tasks (complex, multi-form interactions), but I find its limitations get in the way far too often. You have to mold yourself to it.
It really depends on what the end goal of the application is. As Scott Ewers said, if your goal is to learn, then using ASP.NET MVC will expand your breadth of knowledge in the ASP.NET space (since you already know web forms).
Additionally, if this is going to be a public product, you can leverage the testability benefits of MVC and run automated unit tests. Key ideas like Separation of Concerns can also increase long-term scalability and maintainability.
The primary reason why you might choose web forms is if you are rapidly prototyping the job board application. As you know, web forms allows you to drag-and-drop components onto the canvas to quickly create some basic data entry functionality.
There is a herding code podcast from May 13 on the subject.
Herding Code 47: Joe Brinkman on Webforms vs ASP.NET MVC.
I also agree that choosing MVC would have the advantage of allowing you to expand your knowledge. That not being the only reason, given the choice as well I just finished a small MVC project (my first) and let me tell you MVC rocks! Its a great framework which I feel gives you more flexibility and at the same time out-of-the-box tools to create a web app quickly and painlessly. It was my first experience with VS2008 & .NET FW 3.5 & LINQ, and all the guides at www.asp.net helped me go forward quickly (especially the free tutorial chapter from an MVC 1.0 book mentioned here).
I also got to learn JQuery along the way, as it is very much integrated into these new technologies.
One think to take note though is that this being a new tech, version 2 is already being cooked up, so if your project is for the long run, have that in mind and plan accordingly (in my case, being a small project, I'll probably try upgrading my project to version 2 when its officially released). Yet at the same time, having a fully MS (and thus MSDN) supported version 1 was a godsend for me...
Good luck!
I have good experience in Jquery, CSS, HTML, Javascript but not in TDD.
I have time..and willing to learn MVC but wasn't sure MVC is good choice for Job portal or similar site..
This can be considered a shameless self-advertisement but here is my quiz on how to choose between the two:
http://sietch.net/ViewNewsItem.aspx?NewsItemID=101
I was recently tasked by one of my clients to write a paper, or simply a checklist, that would help other lead developers make this same decision.
I posted the first 2 rough drafts on my blog. I am admittedly pro-mvc but the paper/checklist has been we received so it might be helpful.
http://eric.polerecky.com/archives/a-somewhat-less-biases-comparison-of-mvp-and-mvc/[http://eric.polerecky.com/archives/a-somewhat-less-biases-comparison-of-mvp-and-mvc/][1]
I think the most often overlooked benefit of MVC is convention; I really see any convention in webforms projects and while not strictly enforced in MVC projects at least its there.
i started developing our current app in webforms, mvc wasn't available when development started.. i've chosen the MVP pattern, with URL rewrite HTTP module. currently i'm investigating plugging in some MVC into this, basically to use the front-controller instead of using page-controllers. the other things in already established MVP architecture with web forms in my app give me more flexibility than pure MVC approach without WebForms, which i like, although require a bit more code than MS MVC examples (never tried it for real project to see if it stays that way, like in those examples in screencasts).
what i don't like with MVC is mixing control code inside templates - i believe loops, ifs and stuff like that just shouldn't belong inside the template. but a couple days ago i've ran into Spark view engine that looks kind of promising in that segment, although not still close to the Tapestry 5 (a component-based webGUI framework) in the java world.
But the above mention suggestion to mix both might work for you to explore MVC world and have the safe ground to fallback to if something won't work for you might be ok for you.

Can someone point me towards a practice C# / ASP.net website

I'm looking for a C# / ASP.net website that I can download the source code and practice on, ideally it will come with documentation and hopefully some "bugs" or feature requests to try fixing.
Dose anyone know where to find such a website?
I would take a look at the ASPNET starter kits. They don't come with bugs for you to fix, but I'm sure you can find some lacking functionality you would like to implement.
Take a look at the open source projects on CodePlex, there are plenty of projects you can learn from and contribute to there.
You could also go hunting for .NET projects on SourceForge.
If you'd like to look at MVC, try the NerdDinner. Look at the bottom of the page, you can download the source code and a sample chapter that gives a very good walkthrough of the application.

Categories

Resources