Monthly Archives: September 2009

Convert Image to Icon using C#

Sometimes we will get nice Images from Web as Icons. But we can’t use these Images as application icons in .Net, because the .Net supports *.ico(Icon) format only. This code will convert an Image to Icon using C#. It is … Continue reading

Posted in .Net, .Net 3.0 / 3.5, ASP.Net, Visual Studio, Win 32 API, Windows Forms | Tagged , , , , , , , | 6 Comments

Import / export data in MS Excel using C#

Sometimes we may require to generate Excel file from our reports,read from excel files to import data etc. This can be achieved using Office Interop (Office Automation) assemblies, but Office Automation in Web servers,got some issues;(More details: http://support.microsoft.com/kb/257757). The alternative … Continue reading

Posted in .Net, .Net 3.0 / 3.5, ASP.Net | Tagged , , , , , , , | 1 Comment

Adding and Reading files from SQL Server 2008 Filestream

Few days back I wrote a Post about FileStream feature in SQL 2008.(Filestream in SQL Server 2008). In this post I am trying to write the how to manage or use the FileStream feature from .Net managed code. For adding … Continue reading

Posted in .Net, .Net 3.0 / 3.5, ASP.Net, SQL Server, Visual Studio, Windows Forms | Tagged , , , , , | Leave a comment

Creating Captcha HTML Helper

After working with ASP.Net MVC, and my previous posts, in this Post I am trying to implement a Captcha HTML Helper, an HTML Helper is just a method that returns a string. Creating Custom HTML Helpers. It is an extension … Continue reading

Posted in .Net, .Net 3.0 / 3.5, ASP.Net, ASP.Net MVC, Javascript | Tagged , , , , , , , | 3 Comments

How to use Session objects in an HttpHandler

In my previous post, Captcha using ASP.Net and C#, you may noticed that I am not talking about how can I validate the user is entering correct value or not. I thought of using Sessions for this purpose, like in … Continue reading

Posted in .Net, .Net 3.0 / 3.5, ASP.Net, Visual Studio | Tagged , , , , , | Leave a comment