Adnan’s Blog

Archive for September 2008

Asp.net Read Reciept Request

Posted by: adnanrashid on: September 28, 2008

Heres a quick tip. If you need to include a request for read receipt like Microsoft Outlook while sending mails through Asp.net, just add the Disposition-Notification-To Header to the MailMessage.
The MailMessage class does not have a corresponding attribute and thus it has to be set through the Header.
MailMessage mm = new MailMessage(fromAddress, toAddress);
mm.Subject = subject;
mm.Headers.Add(“Disposition-Notification-To”, [...]

Generic Handler – Session State

Posted by: adnanrashid on: September 26, 2008

In my current project I needed to access the Session state in a Generic Handler. To my dismay, i realized that the Session StateBag was null. The StateBag class is sealed and manages the Viewstate of the Asp.net server controls and pages.
Upon discussion with my colleague, Mr. Hamed, we found the solution to my problem. [...]

Remove project from Recent Projects in Visual Studio

Posted by: adnanrashid on: September 15, 2008

Recently, I felt the need for removing a project from the Visual Studio Start Page, so I Googled and would like to share the solution. Don’t forget to close visual studio before trying this out. This trick requires modification to registry, so if you are skeptical do make a backup of the registry before proceeding.
Start [...]

Google Chrome

Posted by: adnanrashid on: September 14, 2008

Being a Web Developer, I don’t know whether to rejoice the addition of another browser or not? With all the hype of IE 8 ; Cross-Browser compatibility and now this, life sure is chaotic.
I am not going to blog about the new features of Google Chrome (We already have tons of them). It’s been analyzed [...]

Tags: