Solved

MVC tutorial: didn't understand how to use the templates from MVC gallery

Posted on 2011-02-16
1
632 Views
Last Modified: 2013-12-17
I am following the tutorial below and could get the templates from MVC gallery. However, I don't know how to incorporate it into my design. Any help?

http://www.asp.net/mvc/tutorials/iteration-2-make-the-application-look-nice-cs
0
Comment
Question by:DistillingExperts
1 Comment
 
LVL 30

Accepted Solution

by:
Brad Howe earned 500 total points
Comment Utility
1. Download the template  gallery from codeplex.
http://mvccontribgallery.codeplex.com/SourceControl/changeset/changes/bd8a03551a5b

2. browse the mvccontribgallery.zip for the template you want. IE Simple Grunge as an exmaple.

3. Select teh template.zip and EXTRACT to an alternate location.

4. Backup your site.

5. Copy the contents of "DesignTemplate" inside the template.zip to your mvc project. Overwrite were necessary.

6. Search and replace string [YourProjectName] in your project with the name of your project. For example, if your ASP.NET MVC project is named MvcApplication1 then you need to replace [YourProjectName] with MvcApplication1.


"How to use this ASP.NET MVC Design Template
=========================================
There are two steps that you must complete to use a Design Template: (1) Copy the template files to your project and (2) Replace all occurrences of the string [YourProjectName] with the name of your ASP.NET MVC Web application project.

After you download and decompress this Design Template, you'll see the folder "DesignTemplate" which contains design content that can be used with a C# ASP.NET MVC project.

Copy each file from the DesignTemplate folder to your ASP.NET MVC project. For example, if the DesignTemplate folder contains a file with the path DesignTemplate\Content\Site.css then you need to copy this file to the exact same location in your ASP.NET MVC application.

In many cases, you need to overwrite an existing file when copying a file from a Design Template to an ASP.NET MVC project. For example, you almost always need to overwrite the Site.css file. Ensure that you back up all files in an existing ASP.NET MVC application before overwriting the files.

After you finish copying all of the files, you need to replace every occurrence of the string [YourProjectName] in your project with the name of your project. For example, if your ASP.NET MVC project is named MvcApplication1 then you need to replace [YourProjectName] with MvcApplication1.To perform the replacements in Visual Studio, select the menu option Edit, Find and Replace, Quick Replace. "

Cheers,
Hades666
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
LINQ question 7 20
Visual Studio: built-in keystroke automation 2 21
String manipulation 15 48
dynamic menu in asp.net c# 11 22
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now