Templating Solution For Prototype CMS?

Oct 15, 2010

I have a prototype CMS I've been working on for fun. It's completely written in ASP.NET MVC.It works on the principle of "widgets". Little blocks of functionality that can be dragged and dropped on the page, you get the idea. I have added a few simple blogging widgets which work well, one of them is the "Latest Posts" widget that goes on the front page. While the function of the widget i.e. listing the latest posts is standard, the mark-up it generates may not be. I don't want to force my users into a set in stone mark-up.I was wondering if it would be possible to use some form of templating perhaps T4? I have not delved into it deeply but it looks fairly complex, so not sure it would even be possible. What I would like is for the end-user to be able to doctor a small template file to change the markup generated for each blog post list item.If someone knows of any blogs/tutorials that may get me started I'd be very grateful. Googling for custom T4 templates brings up changes to the EditorFor templates that I'm sure everyone is familiar with.

View 1 Replies


Similar Messages:

JQuery :: Conflict With Lightbox Prototype.js In Ie7 And Ie8

Aug 4, 2010

I am facing problem with Jquery Conflict with lightbox prototype.js in ie7 and ie8. The lightbox popup does't show up in ie7 and ie8.I have used jquery.noconflict. It works well for all browsers except ie7 and ie8.

View 2 Replies

WordML Templating With XML Schema And OpenXML SDK

Sep 21, 2010

I'm trying to use a docx read in via the OpenXML SDK as template in a .Net web app for form letters (essentially). I have a docx with the formatting I want, marked up with XML Schema tags defined from a xsd (whatever they're called, the help is exceedingly useless on this).The only thing similar I found on Google was what seemed to be replacing the CustomXmlBlock elements with text elements with the desired data. This seems... messy and fragile.I also have the added complication that some of the data is hierarchical, with elements for sections, and then items in that section. This would seem to completely break the above method.

View 1 Replies

Visual Studio :: Trying To Add A Class Library To A Solution In Vs2008 But Solution Icon Disappears?

Mar 20, 2010

I'm trying to create a .NET solution and add class libraries to it. First - in VS2008 I go to File > New > Project > Other Project Types > Visual Studio Solutions > Blank Solution. Then - after VS2008 creates the blank solution I right click on the solution and select Add > New Project > Visual C# > Class Library. However, when I add the Class Library to the solution, the solution icon disappears from Solution Explorer (although the solution name is still in the VS2008 title bar). Why does the solution icon disappear
from the Solution Explorer when I attempt to do this?

View 2 Replies

Visual Studio :: Solution Explorer Not Showing Solution Name - VS 2008

Sep 10, 2010

I am stumped by a serious issue in Vs 2008.

I created a Blank solution called HelloWorld.Then I added a new Class Library project by the name of HelloWorldService.After creation of the

Class Library project the Solution name disappeared from Solution Explorer.

As a result of which I can now only add new items into the Class Library project but cannot add new item to the solution.

This appears to be a pretty old problem as I found it in another link on the internet.

[URL]

It seems to be a bug.Has MS released a patch or a fix for this.

View 6 Replies

How To Get Solution Path

Mar 15, 2010

I have a website project, I added a class project and test project on the solution. The structure of my site is like this:

C:UserslyndaDocumentsVisual Studio 2008ProjectsWorking_copywwwroot

test project:

C:UserslyndaDocumentsVisual Studio 2008ProjectsWorking_copywwwrootTestwwwroot

class project

C:UserslyndaDocumentsVisual Studio 2008ProjectsWorking_copywwwrootClassLibrary

I need to access resource file in C:UserslyndaDocumentsVisual Studio 2008ProjectsWorking_copywwwrootRescources from my test project and class library, How can I get the path:C:UserslyndaDocumentsVisual Studio 2008ProjectsWorking_copywwwroot

View 8 Replies

Solution Explorer Icon Changes?

Mar 18, 2010

When one creates a new Web Form, Solution Explorer reflects it by adding it to the list, correct? Okay, let me describe this the only way I know how, seeing how I'm a noob and all.The icon representing the item is colorful, with certain features on it with a little bit of yellow at the bottom part of thebackground. While executing my application I notice that certain functionality has ceased to work, when I had made no changes to it, or so I think. I look over at my Solution Explorer and notice that the icon has changed. Now it looks like a simple blank piece of paper. Also, when I highlight the item in Solution Explorer, the Properties window is now missing two attributes: 'Build Action' and 'Copy to Output Directory'.

View 2 Replies

MVC :: Using Model Outside Of Project But Within Solution

Feb 16, 2011

I have decided to go back to an old project that I had placed on hold, to get familiar with MVC 3 Razor. It is a Jokes website (some of you already know). I have been watching these video tutorials on Code First Entity Framework 4, and I have managed to build my model in a project of its own. Then I went and created another project (this time MVC 3 Razor Blank Project) and linked the two togther. I am trying to simply list the joke, but I get the error saying:

CS0012: The type 'System.Data.Objects.DataClasses.EntityObject' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
public class _Page_Views_Home_Index_cshtml : System.Web.Mvc.WebViewPage<IEnumerable<LNModel.Joke>> {

Here is the code in my HomeController:

[Code]....

I know what the error means, I am missing a { using System.Data.Entity; } statement somewhere. But I can't understand why ! according to the video, if I have referenced my projects to that statement, I shouldn't be having this problem !

View 15 Replies

MVC :: Cannot Add MVC 3 Project To Empty Solution

Dec 16, 2010

Scenario:

1) Create completely empty VS 2010 solution.

2) Add one project. Now there's one project but no solution root.

3) Choose "Add new project" from the file menu.

4) Add MVC 3 empty project

5) It fails because the current "something" is neither the solution nor a solution folder.

Workaround: create two other projects first.

View 2 Replies

How To Get RESX Value From Other Project In The Same Solution

Oct 6, 2010

I have two projects in the same solution:

My.Solution.name.with.dots

BLL

Web

in the BLL project, I create a class that need to get a global resx value from RESX file that is placed in the Web project. Is it possible ?

BLL can't have a reference to Web project because of the project dependency

View 1 Replies

Need A GUI Based Deployment Solution For .net?

Feb 24, 2010

I have looked through this site and just can't seem to find the answer I am looking for.

We have a multi server setup for our web sites, typically (DEV/QA/PRODUCTION). Our sites are .net which require some sort of build before being deployed. We are using SVN for source control and are looking for a tool/website/something that will allow our project managers to push button deploy changes to the different environments. It seems there is no silver bullet for this, am I correct in this assumption?

I like the functionality of Springloops but can't find any information regarding its use with .net. Sparing details, it would be nice to see a diagram of sorts on the whole end to end process. What I mean by that is, if multiple different tools are the only answer (no silver bullet), then a diagram that shows where the tools sit in relation to the whole process.

View 3 Replies

Two Different Membership Providers On The Same Web-solution

Jan 17, 2011

I have built two websites, both of them use a custom membership provider I have written myself.

One of these sites is already a long time online and runs fine. Now I have installed the other site on the same webserver in the same Web as a different application. Also have I given a seperate ApplicationPool for each solution.

If now the client logs on to one site, he looses the session on the other and vice versa. It's not possible to be loged on on both sites together. All the rest works fine.

What is the connection between the two sites. Is it necessary to change something in my membership providers?

View 1 Replies

Best Browser Detection Solution In ASP 4.0

Mar 4, 2011

I googled this topic and I came across with three different ways to configure browser capabilities: browscap.ini, browserCaps element in web.config and .browser files in App_Browsers. I thought .browser files is the latest way, but I don't seem to find up-to-date files. But I found quite fresh browscap.ini from [URL]

My first priority is to exclude common crawlers from the visitor stats. The second priority is to detect browser and os with correct versions (e.g. Opera 11 / Win7). Are there any libraries I could use? Is browscap.ini still a valid way and is it possible to use it without access to system files? Where can I find up-to-date .browser files?

View 3 Replies

Configuration :: How To Add A New Project Into The Solution

Apr 24, 2010

There is a solution that whithin it I have a web project.

Now, I wish to add a new web project which has it's own App_Data,App_Themes.App_Code.

I don't wont to mess things and combine them both in the same project. I just won't to compile the new project and upload it sepretly to the web server in a different directory.

How do I do that with VS2008?

View 1 Replies

MVC :: How To Link Two Projects In One Solution

Jan 6, 2011

i have two projects in one solution...

project A

project B

in project A i have page in--->Home/Account(page)

what link i have to use from project B to open the page in project A

View 5 Replies

MVC :: Add Source Code To Solution

Jan 12, 2010

Out of all the projects that contribute to MVC, I've added only the System.Web.Mvc project to my solution and I'm having trouble with the compilation of the aspx files. Firstly the page compiler complained that ViewResult<T> (which my View inherits from) was specified in two assemblies - the copy in the source code and the one in the GAC. I fixed this by changing my copy of the source code to a higher version and referencing the different verison within the 'compilation' tag in web.config. (In fact you can just delete the assembley reference altogether and it automatically uses the one in the solution.) Then it complained that Html helper methods couldn't find classes such as 'Controller'. Now I think this is because the official MVC assemblies in the GAC are looking for the correct version of 'System.Web.Mvc' (i.e. the one with the right public key) but my app is no longer referencing it.

I thought I'd fixed this with an assembley redirect to my version of the code but now the View templates are complaining about inheriting from classes that are in an assembley with the wrong public key.So is what I'm doing possible or do I need to be recompiling all of the MVC source code?

View 2 Replies

Configuration :: Deploy A Web Solution?

Jun 15, 2010

I am new to web solution(more than 1 project - so far I been working with website) Dos deploying asp.net 3.5 solution(with more than 1 project) is different from deploying the asp.net website(not project)What do I have to do..As well I am looking for a link to the precompere GUI plug-in to .net2008(couldn't't find it)

View 1 Replies

Use Common Web.config For Solution In Dot Net?

Mar 5, 2011

I am going to develop the web application in asp.net. where as in this application there is 4 user perspectives. all are independent all togather. but I want to develop under the single web solution. also want to create the number web applications for each user perspective, under this solution. so can i use common web.config file for this solution? what will impact ? if can not then how to manage the config files so that I need to change configuration at once (if need in future)

View 2 Replies

.net - Two Web Applications In The Same Solution - How Can I Keep Them Separate?

Mar 22, 2010

I have two web applications in the same solution.They both use different membership/profile and role providers.They are named differently. When I run the solution, and visit one website, and login everything is fine.I then go to the other website, it thinks I am already logged in and the profile provider tries to load profile properties that do not exist.How can I keep them separate, so when I try to log in on one site, it doesn't think I'm still logged in on the other.

View 1 Replies

C# - Looking For A Good Dynamic Imaging Solution?

May 24, 2010

I work for a small E-Commerce shop and we are looking for a process that will handle resizing our product images dynamically. Currently our designers take high resolution photos, either provided by the manufactures or created in house, and alter them to fit various pages on our site. The designers are constantly resizing, cropping, altering compression levels, etc., of each product photo to fit the needs of the business. Being that our product line is updated frequently, this becomes a monotonous task.

Abobe Scene7 does exactly what we are looking to do and the images are served up from a CDN. Unfortunately we found it to be too expensive.

I'm curious to learn how others handle this process at their organizations. Does anyone know of any good 3rd party tools or other SAAS providers that can handle performing some basic image manipulation and serving them on the fly?

View 2 Replies

Web Forms :: Images Cannot Be Seen In Solution Explorer

May 13, 2010

I have all my images in image folder in my project, when I try to open that folder in my project then I cannot see those images listed in it, though I can attach those images to it is there anything in the settings?

View 4 Replies

How To Access The Session From A Different Project Within The Solution

Feb 4, 2010

I have 2 projects in my solution.

MVC Web application
Class library

The MVC Web application references the class library.

The class library contains a class that extends the default ASP.Net Controller.

I'm putting a variable in session in the application's Global.asax.

protected void Session_Start(object sender, EventArgs args)
{
HttpContext.Current.Session["DomainName"] = Request.Url.Host;
}

In the class library I'm trying to get the value from the HttpContext.Session, but HttpContext.Session keeps coming up null.

[code]...

HttpContext.Current.Session doesn't seem to be an option in controllers.

View 3 Replies

How To Open A Solution In Visual Studio

Feb 4, 2011

I have a website which was created by someone; now I am trying to open it.

My doubt is will that project contain a solution? Within Visual Studio, I am trying to open through the open website option, but I didn't find a solution.

Is that right way? How best can I open a website with Visual Studio?

View 4 Replies

How To Open A File That Is Part Of Solution

Jul 7, 2010

I have a document that I have included in my VS 2010 solution. It is in a folder called "MyFolder" the file itself is called "MyDoc.docx". I've tried the following ways to open the file but none work:

Stream s = File.OpenRead("/MyFolder/MyDoc.docx");
and
Stream s = File.OpenRead("MyFolder/MyDoc.docx");
and
Stream s = File.OpenRead("~/MyFolder/MyDoc.docx");

What is the proper path for this file?

View 1 Replies

C# - Cannot Open An Old 1.1 Application (solution) In VS 2003

Mar 10, 2011

I have a Problem with an very old ASP.NET 1.1 application. I cannot open (load) it in Visual Studio 2003 (on a Win 2003 server) any more. I get an error message,that the component for the communication with the "Front Page - Server Extensions" cannot be found (I use a german VS 2003, so I have not the exact English message). The extensions are installed. That can be the reason for that respectively how can I solve this problem.

Another Question: Is there a possibility to open an ASP.NET 1.1 application in VS 2010? Tthe upgrade wizard tries to convert it, but the conversion results in errors.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved