episerver

How to redirect based on visitor's IP address

I need to create a landing page that will automatically redirect a visitor to the correct country page of a website by working out their location from their IP address. This is an EPiServer 4 site. How would you go about doing this and does EPiServer have this functionality built in? ...

Using the EPiServer Communities API from a console app?

I'd like to write a console or winforms application that will interact with the EPiServer database. Since I don't want to muck about in the deep inards of the database I'd like to use the EPiServer API. However, all the examples are using the "CommunitySystem.CurrentContext" which is null when running outside the website. Now, I'm goi...

EpiServer : How to Check Whether Page Exists?

Is there a way to gracefully check whether a page exists in EpiServer CMS 5 (given a pageId integer) without having to catch the PageNotFoundException thrown by DataFactory.Instance.GetPage(pageReference) (EpiServer will happily create a PageReference using a non existing pageId). Surely I can check whether a page exists without thro...

Development environment for ASP.NET with EpiServer

At our company we are going to develop more for the Windows platform than we have done up until now. As this scale of Windows development is new to us it would be nice with some feedback from experienced developers. Requirements we have: 5 developers from the beginning. 15 developers a year from now. All developers should be able to d...

How to get the parent page of a PageDefinitionTypePlugIn property in EPiServer?

Hi, I've got a [PageDefinitionTypePlugIn] PropertyString (it's a dropdownlist), and I'd like to be able to detect what it's parent page is. Generally, Global.EPDataFactory.CurrentPage works fine to return the page, but when a NEW page is being created, CurrentPage returns null. I need to know prior to the render of the control what the...

Search Server 2010 - reference error

Hello, Im running Search Server 2010 from a virtual machine and it works good so far. On my development machine (win xp 32bit), the thought is to query the search server with a web service. Problem is that when i try to start the site, i get the following error: Could not load file or assembly 'Microsoft.Office.Server.Search' or one of...

Setting up a new EPiServer 6 project with source control

I want to end up with a single VS project/solution that I can check in to source control, that any other developer in the office can simply check out and run, and that I can deploy without having to install EPiServer program files on every web server. I have just used the EPiServer 6 Deployment center (part of the official EPiServer 6 d...

EPiServer 6 Site Center breaks in Visual Studio Development Server

I've installed an EPiServer 6 site locally and it is running fine in IIS, but when I open it as a solution in Visual Studio 2008 and run it via the built in development server, the site center dashboard page doesn't work, I get a 404 error. I guess there is some configuration in IIS that needs to be set up in Visual Studio? Has anyone f...

What are the steps to creating a new EPiServer Project

How do you go about setting up a new EPiServer website? I can't seem to get from an empty visual studio project to a deployed website without having to fix all kinds of file path and referencing issues. If you have a smooth process for creating an EPiServer site from scratch and deploying it to a web server... I'd love to hear it! ...

pasteHTML removes markup

I am writing a plugin to an old IE-only WYSIWYG-editor which resides in an old CMS. I've created a plugin that opens an popup where the user can enter the url of an youtube clip. The popup then creates the corrent <object..><param..> markup for the embed and uses Internet Explorers pasteHTML function; var range = plugin.editorDocument....

How can I find number of visitors/users at my site (IIS7/asp.net) at any given moment?

I need to display how many users are browsing my site. The site is running on iis7, and we are using asp.net 3.5. Is the number of active sessions a good way to go? The number does not need to be very accurate. No history is needed, I just want to know how many users are "online" right now, and display that on the page itself. ...

Diamonds with question marks

Hi, I'm getting these little diamonds with question marks in them in my HTML attributes when I present data from my database. I'm using EPiServer and a few custom properties. This is the information I've gathered, I save my data as a XML document, since I use custom EPiServer properties which need more than one defined value. This is...

How do I share usercontrols/functionality between sites?

Hi We have two asp.net sites (based on episerver). Using Telerik Asp.net controls. We have some funtionality that we want to have availible in both sites. Right now one of the sites use webparts/usercontrols and the other uses usercontrols. Is there any way to share the functionality between these sites? What I would like is to be abl...

JavaScript problems in one IIS server but not another

Hi everyone, I have a problem that only occurs in one environment. On this particular page, somewhere in the top half of the element, an array is created and populated. This is later used in the onfocus event handlers of various controls. I use Firebug to debug the page and discovered the problem. In our dev environment the array is in...

Differens between page["propertyName"] and page.property["propertyName"] in EPiServer?

Hi, What is the difference between accessing a property through page["propertyName"] and page.Property["propertyName"] in EPiServer? Thanx! ...

Using WebParts results in blank page

Hi, I'm developing an ASP.NET (C#) application using EPiServer CMS 5. On the startpage we have four WebPart-zones and everything works great running it through Visual Studio. When publishing it to the production-server (IIS 7) the startpage shows as a blank page, no error what so ever... When we remove these lines of code it works, so...

EPiServer 4.61 removing script tags from WYSIWYG editor

I know the WYSIWYG editor is not designed for pasting flash video object and script tags into the page but lets say you want to do that... Why does the EPiServer editor strip out the first javascript tag? ...

EpiWebParts in EpiServer 6

We want to add a web part framework to our EpiServer intranet. I've found this which is probably what we want. However there's no installation instructions for use under EpiServer 6 - can anyone advise on how to get started with using this framework on the current release of EpiServer? ...

Why is a meta refresh tag and title tag sitting outside of the <head> tag in ASP.NET?

When I render a page in ASP.NET, the following happens </head> <NOSCRIPT> <meta http-equiv="REFRESH" content="0;URL=/Default.aspx?id=84&epslanguage=en-GB&jse=0" /> </NOSCRIPT> <title>Page title goes here.</title> <body> My masterpage looks like this: <title>Page title goes here.</title> </head> <body> So what I'm asking is, where t...

DataFactoryCache.CreateDependency in EPiServer returns CacheDependency with HasChanged==true

Hi! I'm using the following code to cache an object using the CacheManager class in EPiServer: CacheManager.RuntimeCacheAdd( cacheKey, myPageCollection, DataFactoryCache.CreateDependency(new PageReference(15))); For some reason the CacheDependency object returned has HasChanged==true, ...