Client and Serverside Button Click in ASP.Net

While I was going through the comments in this post here, someone asked a question around how button click function worked, so I thought I would write a post around this topic.
There are two types of click that can be associated with a button, one is a server side click function, i.e in a function [...]

Issues with doing Email templates

Recently I’ve been working on writing email templates, it is a lot of pain checking it in the different email clients. Here are some of the problems I encountered and how to fix them.

CSS is not fully supported by all email application and web clients. This article at Campaign Monitor is a good reference on [...]

Logging to Eventviewer

This article here is really good on explaining how to log to the Even Viewer. It is really simple and straight to the point, and also explains how to overcome the common security issues that you would get in logging to the Event Viewer.

Proper exception handling

We all know the importance of handelling exceptions properly in an application, but what is the best way?
This article here is really good in explaining the different method, which points to throw and handle the exception and the reasons behind them.
http://www.informit.com/articles/article.aspx?p=102315&seqNum=1

Redirecting a parent page from an Iframe

Redirecting a parent page, this situation would arise if you had an web application and there were iframe pages used in the system.If the user looses their session on one of these iframe pages, the parent page need to be redirected back to the login page.
To do this you can use the javascript command of
parent.location=login.aspx
Depending [...]

Code Practices for buliding faster ASP.NET web applications

Found a really good article here on how you can code your .net web application better to get better performance.
http://www.codeproject.com/KB/vb/Speed_up__Web_application.aspx

Convert .net ~/ path to actual web path

In .net, we use the sympol ~/ for refering to a file, but some times we want to be able to convert the ~/ path to the actual path in url.
For example, in one of my projects,I have a web.config variable to the login page, and the value is ~/login.aspx, and I use the Response.redirect(configurationmanager.appsettings(“Login”)) [...]

Changing Code While Running in Debug Mode in .Net 2005

In .Net 2005, you can change the code behind once a debug process has finished, but if you were stepping through the code, and changed while it’s still in the process of stepping through the code(the green play button is highlighted), once you run through the rest of the code you will probably get a [...]

Can not open Visual Studio .Net 2003 project once added to SVN- Problem Resolved

This is an issue that has haunted me when I first started to use SVN, and it took me sometime to figure out why it is happening and how to get around it.
After first switching to SVN from visual source safe, I added all my .Net 2003 projects to SVN, but after I’ve added them [...]

10 ASP.NET Performance and Scalability Secrets

I came across a really good article today on how to optimise asp.net performance by changing web.config and other non code related areas. The article can be accessed here