How to create a reusable Asp.Net Mvc application?


How to create a reusable Asp.Net Mvc application?



We have multiple Asp.Net WebSites each running on IIS.

Site1 :  http://www.Site1.com/     Site2 :  http://www.Site2.com/ 

We have to implement Shopping Cart functionality for each of the above WebSites. For each web site the corresponding shopping cart should work on the following Url.

Shopping Cart for Site1 :  http://www.Site1.com/shop/cart     Shopping Cart for Site2 :  http://www.Site2.com/shop/cart 

We want to develop the Shopping Cart application using Asp.Net MVC 2.0. But it should be reusable in both the above sites.




Generate PDF document based on Word document

1:



asp.net mvc ckeditor in jquery dialog
Right now there is no mvc site I believe that does what you want, so it's difficult to point you to samples, but DotNetNuke does the same thing what you want, so you can take a look but it's in pure asp.net web forms, no mvc..
asp.net mvc integration test


Filtering a List view in an ASP.MVC application


setting displayname data annotation dynamically in asp.net mvc

2:



ASP.NET MVC - TextArea values
I don't believe you can do it using the site url, but you can do it with an additional routing field.


What's the difference between a Web Server and a Game Server?
I do something similar for some blog software I wrote where I have www.sitename.com/targetBlog/Blog/Post.


C#: Caching w/ method attributes VS manually using System.Web.Caching
Where targetBlog can be games, software, personal or whatever.

Blog is the controller, and post is the action.

You just put it in your url, add it to your routes before the controller, and then you get it passed to your methods just like any other paramter.

. Here is a route example.
            routes.MapRoute(             "BlogSpecific",                                              // Route name             "{blogSubFolder}/{controller}/{action}",                           // URL with parameters             new { blogSubFolder = "", controller = "", action = "" }  // Parameter defaults         ); 



88 out of 100 based on 78 user ratings 628 reviews

@