• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 663
  • Last Modified:

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

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
DistillingExperts
Asked:
DistillingExperts
1 Solution
 
Brad HoweCommented:
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

Microsoft Certification Exam 74-409

VeeamĀ® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now