Posts Categorized: ASP.Net

How to pause / resume a thread in C#

Posted by & filed under .Net, ASP.Net, Windows Forms.

Here is the code snippet which will help you to pause / resume a thread using ManualResetEvent class. Both Suspend() and Resume() methods are deprecated in .Net Framework. So both of these methods not recommended to use. And to pause the thread, you can use And to resume you can use You can find more [...]

Assembly Binding Redirection in .Net

Posted by & filed under .Net, .Net 4.0, ASP.Net, Windows Forms.

Today I come across an application crash due to version mismatch. The application executable was compiled using version 1.0.x.x, and we were using 6.2.x.x. Due to this version mismatch application was crashing. Unfortunately we don’t have the source code of this application with us. Later I got one solution using bindingRedirect. This configuration element will [...]

How to send email messages with embedded images

Posted by & filed under .Net, ASP.Net, CodeProject, Windows Forms.

While creating email messages with HTML content, normally the images are displayed with IMG tag, where the SRC attribute pointing to an image, which is hosted in the web server. Most email clients will not display the images, which is downloading from the web. Instead of pointing to web URL, you can embed image in [...]

Multiple browser tabs and ASP.Net session

Posted by & filed under .Net, .Net 3.0 / 3.5, ASP.Net, Miscellaneous.

If you are using Session in ASP.Net for storing some user information, most of the modern browsers may create problem for you. Because if you open the asp.net application in same browser, but different tab, both of these tabs shares the session value. Two solutions are available for this problem. Using Cookieless SessionIDs – By [...]

How to access SkyDrive from Windows Forms – Part 2

Posted by & filed under .Net, ASP.Net, Windows Forms, WPF.

This post is about uploading files from your computer to Sky Drive using Live REST API. For uploading files, sky drive API supports two HTTP methods, PUT and POST. For simplicity in this post PUT method is used. If you want to use POST, please check How to upload file using HttpWebRequest class post. Only [...]

How to access SkyDrive from Windows Forms – Part 1

Posted by & filed under .Net, ASP.Net, Windows Forms, WPF.

Introduction and how it works SkyDrive is a file hosting service that allows users to upload and sync files to a cloud storage and then access them from a Web browser or their local device. It is part of the Windows Live range of online services and allows users to keep the files private, share [...]