How to check if a method is overridable

Read more about How to check if a method is overridable article

For a method or properties to be overridable, it must has a virtual property in its base class set as true as well, is final must be set as true. To determine whether a method is overridable, it is not sufficient to check that IsVirtual is true.

Security Exception when running on IIS7

Read more about Security Exception when running on IIS7 article

I stumbled upon an error when deploying a web application onto IIS7 running on Vista. After days of trying to solve, it's actually due to the fact that the application is set to medium trust but it actually needs Full Trust due to using Reflection in the code.

How to Customise RadUpload Appearances

Read more about How to Customise RadUpload Appearances article

Telerik's RadUpload control doesn't come with many documentation. The default comes with multiple file slots, with add and delete button but sometimes we might only need just one uploader.

Adding Line break in Javascript string (Unterminated string)

Read more about Adding Line break in Javascript string (Unterminated string) article

Somehow Javascript complaint about Unterminated string constant when I tried to add a line break (\n) into a string variable. If viewed in source, it looks alright. After all, do something like that fix that problem:

Telerik: ORM - Using Generic Method to Add New Object

Read more about Telerik: ORM - Using Generic Method to Add New Object article

When using ORM, after we have setup the business objects, it's useful if we create some generic methods which can be used in many places.

Some basic LinQ to SQL syntax

Read more about Some basic LinQ to SQL syntax  article

Have been trying to use Telerik Open Access ORM for the core framework. Finally have the basic structure setup. With having business objects layer, persistant classes and data access layer seperated, the web app itself could just communicate with the business objects, which then calls to persistant classes and data access layer.

RadControls Not Appearing In Toolbox

Read more about RadControls Not Appearing In Toolbox  article

Sometimes, somehow Telerik controls might suddenly not appear in Visual Studio's toolbox. A quick solution would be mouse hover to toolbox, add a new tab, and then choose items. Then point to the Telerik bin file (Telerik.Web.UI) and that should populate all controls into the toolbox.

Using Generic Method for Standard Add/ Delete in ORM

Read more about Using Generic Method for Standard Add/ Delete in ORM article

Telerik ORM (Open Access Mapping) has been a very useful tool, for mapping database structures into object oriented classes, so called Persistent Classes. This saves a lot of efforts in writing up these classes manually. What's more we could add on to it is to use generic methods on standard adding and deleting transaction.

Login Form Authentication with Multiple Web.Configs

Read more about Login Form Authentication with Multiple Web.Configs article

Applying security for a web application is a very common task. There are always parts on a web site that requires private only access for members. Recently, I tried to use the form authentication method provided by .NET and found it quite simple to use, though I have always done it with sessions. The

Commonly Used SQL queries

Read more about Commonly Used SQL queries article

These are some of the commonly used SQL queries at work, just to note them down for easier access. To add a contraint (foreign key): alter table pro_product add constraint FK_53_PRO_Category_FK foreign key (PRO_Category_FK) references PRO_Category(Id) on delete cascade