Solved

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

Posted on 2011-02-16
1
652 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Why You Need a DevOps Toolchain

IT needs to deliver services with more agility and velocity. IT must roll out application features and innovations faster to keep up with customer demands, which is where a DevOps toolchain steps in. View the infographic to see why you need a DevOps toolchain.

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…
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…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

728 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