Solved

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

Posted on 2011-02-16
1
646 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
ID: 34906697
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

856 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