Welcome !

July 25, 2007

Welcome to my blog, hope you will find the answers to your questions here. See my findings under the categories.

—Happy Coding—
Thanks,
Mubashir

Advertisements

Speeding Up VS.NET 2005

July 25, 2007

Hi,
A very interesting and useful content I found on the internet that describes how can we improve the reponse time of Visual Studio.Net 2005 while development. It is a much needed as there has been a problem with VS.NET 2005 eating loads of resources unwantedly. See Details

—Happy Coding—
Thanks,
Mubashir


IIS Traffic Monitor

July 23, 2007

Hi,
A very welcome and useful tool I found while surfing the other day. There are times when you need to monitor your IIS for various reasons related to performance. Have a go at it, it is a
simple (free) tool to show the bandwidth consumption of websites, both bytes sent and received. See Details

—Happy Coding—
Thanks,
Mubashir


obout controls for ASP.NET

July 23, 2007

Hi,

Follow the link http://obout.com and find yourself some useful and eye catching controls that will power up your applications. They have a very cool Grid, Calendar, Tree view, Combos etc that are available all free.

Keep up the good work..

—Happy Coding—

Thanks,
Mubashir


Zip Files (made easy)

July 22, 2007

A few days back while working on a project I needed to zip files. There were several options available, one was obviously to use any third party component available most probably Winzip. But for that you will need to get a licensed copy for that and also install winzip utility on the client machine while deploying your application. To avoid this I tried and used the windows compression utility available under all the windows platforms (above than 2000). The idea is to actually create a file with ZIP extension and copy all the contents of the folder(s)/files(s) in it. The windows compression utility will take care of the compression. Try the following code,

Private Sub ZipFiles(ByVal SrcFolder As String, ByVal DestZipFile As String)
Dim emptyzip() As Byte = New Byte() {80, 75, 5, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
Dim fs As FileStream = File.Create(DestZipFile)
fs.Write(emptyzip, 0, emptyzip.Length)
fs.Flush()
fs.Close()
fs = Nothing
Dim sc As Shell32.ShellClass = New Shell32.ShellClass
Dim SrcFlder As Shell32.Folder = sc.NameSpace(SrcFolder)
Dim DestFlder As Shell32.Folder = sc.NameSpace(DestZipFile)
Dim items As Shell32.FolderItems = SrcFlder.Items()
DestFlder.CopyHere(items, 20)
End Sub

Now use the function call,

ZipFiles("c:\myFolder\","c:\theZipFile.zip")

Thats it! it will zip and put all the contents of c:\myFolder into a zip file theZipFile.zip that will be created at c:\
Hope that helps..

—Happy Coding—

Thanks,
Mubashir