How to apply MVVM on ASP.NET with MVC? [closed] - asp.net-mvc

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
Is there anyway to implement MVVM design pattern in client side of Asp.net with MVC applications?

Sounds contradictory. ASP.NET MVC (as it name suggests) implements the MVC pattern. If you want to use the MVVM pattern in a web application you could implement it yourself on top of ASP.NET or use an existing framework such as ASP.NET MVVM.
If you are talking about client side MVVM, there are gazillions of javascript frameworks (I've already lost track of their number, because they grow like mushrooms everyday) you could use: knockoutjs, backbonejs, ... For example ASP.NET MVC 4 comes bundled with knockoutjs and is using it for its SPA template.

Related

What are some good static code analysis rules for an ASP.NET MVC Application? (NDepend) [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I recently came across this posting where Darin Dimitrov suggested that you never refer to HttpContext.Current in your ASP.NET MVC application.
We have NDepend, a tool for doing static code analysis, what are some other rules that you believe would be good to model with something like NDepend?
Much appreciated!
In our code base (which should reuse existing infrastructure and also uses Autofac for DI) I've currently written some rules along the lines:
To ensure we are not going to tightly couple ourselves to existing infrastructure
That we are not using ViewBags in our Views, but instead using ViewModels

Expert tutorials/Books for MVC C# Entity Framework [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I am familiar enough with C#, objects and classes and i have tested Entity Framework 4 (tutorials, videos, blogs for CRUD operations). But i think this knowledge is not enough for a larger project with real business aspects such us Ajax partial updates, jquery, json data populating lists etc.
Which Books or tutorials do you suggest for Professional Programming with MVC?
ASP.NET MVC in Action, good book to look.
Checkout the Tutotials in ASP.NET MVC site. They have a nice Contoso University sample MVC app which uses Entity Framework and Repositary pattern.
You may also consider checking out some Open Source projects in Codeplex/Github and download the source code and try do make some customization. That is a good exercise for sure.
Practicing will make you an expert. So Practice Practice Practice. Write some code...
I like the Steve Sanderson MVC book for a good overview of the framework:
http://www.amazon.co.uk/Pro-ASP-NET-MVC-Framework-Edition/dp/1430234040/ref=sr_1_4?ie=UTF8&qid=1344004976&sr=8-4
believe there is an MVC4 version now too, but without Steve:
http://www.amazon.co.uk/Pro-NET-Edition-Professional-Apress/dp/1430242361/ref=sr_1_2?ie=UTF8&qid=1344004976&sr=8-2

What is best practice organize a MVC project with backend, frontend and web api? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I have a question about organizing a ASP.NET MVC project.
I have 3 different main area. Front and back-end, and I have a Web API.
I want to know what is best practice for organizing such a project?
What I have done so far is to make 3 different projects so I could separate the area of which they worked on, but I have a problem with the Web API with CORS (Cross-Origin Resource Sharing).
So my question would be, is it possible to have 3 projects, or should I have to use areas? I still want to be able to separate the "concerns" (Web API, fronted, back-end).
why dont you run it all under one default virtual directory.. your structure would be localhost => virtual root, localhost/Web1. localhost/Web2, localhost/Web3 and run them all under IIS and not IIS express

What should I learn before learning ASP.NET MVC? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I have worked with ASP.NET webforms and windows application with C# but due to the change in nature of my job, I did not work with ASP.NET at all for 2 years. Now, I want to come back to ASP.NET and MVC is already there. I am following the tutorials on www.asp.net.
Should I learn LINQ and EntityFramework to learn MVC? Are there any other fundamental things to learn before learning MVC?
Do yourself a favor and learn HTTP, then you'll be good with any framework.
Now, I want to come back to ASP.NET and MVC is already there
Nevermind! Get started with MVC!
Should I learn LINQ and EntityFramework to learn MVC?
That is not necessarily a prerequisite. Maybe you need get used to lambdas (as they are used by many methods in MVC), so learning LINQ will guide through that.
Get a good understand of AJAX and jQuery (as it's included in the MVC stack) and you're good to go!

What CAPTCHA system is compatible with ASP.NET MVC? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
What CAPTCHA system is compatible with ASP.NET MVC? Are there any good examples out there?
This is a great tutorial on using reCaptcha in MVC and works with the currently newest release.
Try this post
Source code can be found here if you don't have the patience to read the article: zip file
Stack Overflow, which is written using ASP.NET MVC, uses reCAPTCHA. You can find out more about reCAPTCHA at Digitizing Books One Word at a Time and even watch Jeff Atwood talk about reCAPTCHA within Stack Overflow during his talk at PDC 2008.
Check out RecaptchaMvc. It's a framework that uses the reCAPTCHA service and ASP.NET MVC.

Resources