Posts

Showing posts from October, 2011

Get Organised with OneNote

One note is greate tool to get organised and in todays world of information explosion. you may need any set of information weather financial, personal, or expenses or your assets your insurence etc. onenote is the best way and easiest way to manage this info. only thing to do is create templates for eash of these stuffs and you can add info as and when required. you can also, attach the scanned documents with the records in onenotes. For example, monthly phone bill. Below is good link which explains how to utilise onenote and how to find better templates for your use. Click Here

Orchard CMS using Visual studio 2010

Below is good Blog on Orchard CMS development using Visual studio 2010 click here incase your module doesn't get recognised. its because of module.txt not in proper format. copy the content from below link for module.txt and inshah allah it will work. click here

Using Generic Custom Section Handler in Config file of your application

Hi All, For one of my application i needed custom configuration handler. And I have implemented a generic version of it as below. As you can see we need to first define the custom config modal object as a saperate class as below. SocketConfig.cs namespace GenericConfigHandler { public class SocketConfig { public int PortNumber { get; set; } public string Name { get; set; } public string RequestVersionNumber { get; set; } public List InvalidIpList { get; set; } } } After that we need to provide the configuration handler on file ConfigurationHandler.cs as below. As you can see the Type T is decided at runtime and based on the configuration values provided in app.config. the below code deserialize xml data into and object of typeT and returns. namespace GenericConfigHandler { public class ConfigurationHandler : IConfigurationSectionHandler { public object Create(object parent, object configContext, Xm