1: <html> 2: <head> 3: <style type="text/css">
4: .outerLink 5: { 6: background-color:black; 7: display:block; 8: opacity:1; 9: filter:alpha(opacity=100); 10: width:200px; 11: } 12: img.darkableImage 13: { 14: opacity:1; 15: filter:alpha(opacity=100); 16: } 17: </style> 18: </head> 19: <body> 20: <a href="http://www.google.com" class="outerLink">
21: <img src="http://www.google.co.uk/intl/en_uk/images/logo.gif" width="200"
22: class="darkableImage" onmouseout="this.style.opacity=1;this.filters.alpha.opacity=100"
23: onmouseover="this.style.opacity=0.6;this.filters.alpha.opacity=60" />
24: </a> 25: </body> 26: </html>-- Lee
I've been using Rob Conerys Visual Studio colour scheme VibrantInk v2 for over a month now and I must say it is a joy to program with.
I recommend it to anyone who stares at a bright white computer screen for prolonged periods.
-- Lee
In EpiServer I've recently created a login page with all other page access behind it.
However obviously I want editors using the CMS editor to view & edit the site not to have to log in before proceeding to the rest of the site to edit it.
Anyway, here is how I'm checking whether the page being requested is being requested from edit mode.
public bool IsInEditMode()
{
bool isInEditMode = false;
if (HttpContext.Current.Request.UrlReferrer != null)
{
isInEditMode = Regex.IsMatch(HttpContext.Current.Request.UrlReferrer.LocalPath, "/admin/|/edit/", RegexOptions.IgnoreCase);
}
return isInEditMode;
}
Another way of doing it is
protected Boolean IsInEditMode()
{
if (Request.Params["idkeep"] == null)
return false;
return true;
}
Englestone All Rights Reserved. Blogger Template created by Deluxe Templates
Wordpress Theme by Skinpress | Supported by Dante Araujo

