Asif Maniar

Software Engineer
posts - 18 , comments - 14 , trackbacks - 0

ASP.NET

Tricks and Optimizations for you Sitecore website
When working with Sitecore there are some optimizations/configurations I usually repeat in order to make my app production ready. Following is a small list I have compiled from experience, Sitecore documentation, communicating with Sitecore Engineers etc. This is not supposed to be technically complete and might not be fit for all environments. Simple configurations that can make a difference: 1) Configure Sitecore Caches. This is the most straight forward and sure way of increasing the performance ......

Posted On Wednesday, March 21, 2012 5:18 PM | Comments (0) | Filed Under [ ASP.NET ]

A Simple implementation of the Proxy Design Pattern using C#
A proxy is an object that can be used to control creation and access of a more complex object thereby deferring the cost of creating it until the time its needed. Below is a simple implementation of the proxy pattern in C#. The ComplexProtectedExpensiveRe... is private to the ProxyContainer and cannot be instantiated by a client. The client creates an instance of the SimpleProxy class which controls its access to the more complex and expensive to create ComplexProtectedExpensiveRe... class. ......

Posted On Tuesday, February 7, 2012 4:02 PM | Comments (0) | Filed Under [ ASP.NET ]

Using Sitecores pipeline to pre-populate item in current language
Sitecore has a powerful event pipeline infrastructure that you can leverage to plugin commands into various item creation, change, move, publish etc events. Recently I had to add functionality to Sitecore so that when an items version is created all fields from a target language are copied into the newly created version to ease editing. To do this first we add an event handler in the Web.Config file for the versionAdded event. <event name="item:versionAdded"> <handler type="MyNamespace.MyClass, ......

Posted On Monday, December 12, 2011 5:41 PM | Comments (0) | Filed Under [ ASP.NET ]

Removing / Restricting Access to Sitecores Interface on Content Delivery Environments
Here are a few steps you can follow if you want to restrict access to Sitecore’s Interface on content delivery environments. 1) Open Internet Information Services (IIS) Manager 2) Expand your Content Delivery website 3) Click on the Sitecore folder 4) Double Click on Authentication in the middle content pane 5) In the Authentication Pane right click Anonymous Authentication and click Disable 6) Try visiting the Sitecore login page on the Content Delivery site and verify that you get an access denied ......

Posted On Monday, October 24, 2011 5:40 PM | Comments (0) | Filed Under [ ASP.NET ]

Copying Sitecore Items across Languages
When using multiple languages/cultures in the Sitecore CMS the content of an item isn’t usually copied over from an existing language to a new language version. While working on a multi lingual website after content was added to the primary language (en-US) I had to write a script to copy all fields from the primary language into other languages (Example en-GB). Here is some code that I used for Sitecore 6.2. The following method copies an item from the Source Language to a Target Language provided ......

Posted On Monday, October 25, 2010 5:20 PM | Comments (1) | Filed Under [ ASP.NET ]

Enabling HTTP Redirect in IIS7
If you want a virtual directory or a site in IIS7.x to redirect to another url you first have to make sure you have installed http redirect for IIS. To do that goto Control Panel > Program and Features and select Turn Windows features on or off Choose IIS and click on Add Role Services and make sure you check HTTP Redirection Let the feature be installed and configured. Now you will see the HTTP Redirect option in the Features View of IIS. Click HTTP Redirect and add the necessary redirect information ......

Posted On Tuesday, October 12, 2010 4:00 PM | Comments (1) | Filed Under [ ASP.NET ]

WCF and IIS7: 404 - File or Directory not found
Normal 0 false false false EN-US X-NONE HI MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; ......

Posted On Tuesday, August 31, 2010 4:48 PM | Comments (4) | Filed Under [ ASP.NET ]

Cleaner ClientID's with ASP.NET 4.0
Normal 0 false false false EN-US X-NONE HI /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; mso-bidi-font-size:10.0pt; ......

Posted On Tuesday, April 27, 2010 10:40 AM | Comments (0) | Filed Under [ ASP.NET ]

IIS7 Shared Configuration with Offline Files
Recently I was working on a hardware architecture project for a client. The final architecture for one of the websites consisted of 3 web servers hosting windows 2008 and IIS 7 being load balanced. When setting up the websites we decided to use the Shared Configuration hosting built into IIS7. Shared configuration allows you to deploy and propagate IIS configuration changes to all servers by changing one configuration file. This post explains it in more detail: http://learn.iis.net/page.a... ......

Posted On Wednesday, January 13, 2010 6:09 PM | Comments (2) | Filed Under [ ASP.NET ]

Building a Silverlight Flickr Application using Windows Communication Foundation

Using Silverlight, FlickNet library and Windows Communication Foundation to search public photos for a Flickr user.

Posted On Wednesday, September 30, 2009 4:08 PM | Comments (1) | Filed Under [ ASP.NET ]

Full ASP.NET Archive

Powered by: