ILMerge – Merge .Net Assemblies

December 23, 2010 1 comment

ILMerge is a utility for merging multiple .NET assemblies into a single .NET assembly. It works on executables and DLLs alike and comes with several options for controlling the processing and format of the output. See the accompanying documentation for details.

ILMerge is a utility that can be used to merge multiple .NET assemblies into a single assembly. It is freely available for use from the Tools & Utilities page at the Microsoft .NET Framework Developer Center.

Download ILMerge

Advertisements
Categories: Frameworks Tags: , ,

DotNetZip – Zip file manipulation in .NET

December 23, 2010 Leave a comment

DotNetZip is a small, easy-to-use class library for manipulating .zip files. It can enable .NET applications written in VB.NET, C#, or any .NET language, to easily create, read, and update zip files. Zip Compression is easy with DotNetZip. The DotNetZip project also produces a GUI ZIP tool, and a few command line tools.

DotNetZip works on Windows-powered PCs with the full .NET Framework, and also runs on Windows Mobile devices that use the .NET Compact Framework. Create and read zip files in VB, C#, or any .NET language. The library can also be used from COM enironments, like PHP, Classic ASP, or VB-Script. DotNetZip supports these scenarios:

  • creating a zip archive, adding files or directories into the archive
  • listing files in an archive, extracting files from an archive
  • modifying an existing archive – renaming entries, removing entries from an archive, or adding new entries to an archive
  • creating zip files from stream content, saving to a stream, extracting to a stream, reading from a stream
  • dynamically creating ZIP files from ASP.NET applications

Read more at http://dotnetzip.codeplex.com/

Categories: ASP.Net, C# Tags: , , , ,

window.location not working in IE 6

October 21, 2010 Leave a comment

For some unknown reason, IE 6 Java-script engine doesn’t allow me to a new URL by simply changing the window.location or window.location.href properties.

The very same thing is working fine in IE 7/8, Chrome and Fire-fox. But IE 6 is doing nothing on a call like window.location.href = url; No error is returned and location of page remains the same.

On searching for this issue, i came to following solution.

This problem is resolved by replacing the direct java-script to a custom function call like:

function SetWindowLocation(url)
{
    setTimeout(function()
     {
         window.location = url;
     }, 0);
}

Calling this function will change the location in all browsers including the funny IE 6.

Categories: Javascript Tags: ,

The Award Night

October 9, 2010 Leave a comment

On October 8, 2010 we participated in P@SHA ICT Awards 2010.

It was a very unique experience for our team as our product Ultrabot (Learning Simplified) by Knowledge Platform was sent as nominee of awards for the first time. Ultrabot was contesting for the award in the e-Learning category.

Once we saw our product in the Finalists List, our excitement was doubled and we kept our fingers crossed for our hopes to be a winner. And finally our hard work, dedication and team work got reward and an award. Ultrabot was declared the winner in e-Learning category.

It was a moment of joy for the whole KP team but I am sure, this was just the right beginning, there will more awards to come for our very own Ultrabot in future.

Good luck Ultrabot. Good luck KP.

 

Ultrabot - Winner in the e-Learning Category

Ultrabot - Winner in the e-Learning Category

 

 

The Award

The Award

 

Categories: General

Accessing Protected Pages in C#

September 24, 2010 Leave a comment

System.Net.WebRequest can be used to download a web resource in .Net code. Following is code to download a web resource in code:

String url = "http://domain.com/resource_url";
HttpWebRequest req = HttpWebRequest.Create(url) as HttpWebRequest;
WebResponse resp = req.GetResponse();
Stream Answer = resp.GetResponseStream();

This code works okay if the web resource is not protected and is public-ally accessible. But if the resource is protected using windows authentication, the code req.GetResponse() will return an Unauthorized exception.

To access a protected resource, we will need to use NetworkCredentials for the web request as shown in the following code:

String url = "http://domain.com/resource_url";
String user = "window_auth_username";
String pwd = "window_auth_password";
HttpWebRequest req = HttpWebRequest.Create(url) as HttpWebRequest;
req.PreAuthenticate = true; //Tell the server that request is authenticated
req.Credentials = new NetworkCredential(user, pwd, "http://domain.com"); //Link the credentials
//Remaining code will remain the same.

WebResponse resp = req.GetResponse();
Stream Answer = resp.GetResponseStream();
Categories: C#

CrossSlide – jQuery Plugin for Cross-fade Animations

September 21, 2010 Leave a comment

CrossSlide

CrossSlide is a jQuery plugin implemented in 2kB of Java-script code. Some common slide-show animations, traditionally only available via Adobe Flash™ or other proprietary plugins. CrossSlide builds upon jQuery’s animation facility, so it is as portable across browsers as jQuery itself (that is, a lot!)

You can read more at http://tobia.github.com/CrossSlide/

Categories: Image Slider, JQuery Tags: ,

How to Create BlogEngine.Net Extensions

September 19, 2010 1 comment

BlogEngine.NET is an open source .NET blogging project that was born out of desire for a better blog platform. A blog platform with less complexity, easy customization, and one that takes advantage of the latest .NET features.

BlogEngine.NET was designed using the current .NET framework and focused on simplicity, ease of extendibility, and innovative features. With BlogEngine.NET, we hope to create the natural blog of choice for all .NET developers world wide. Read More…

In recent past, we evaluated different open source blogging platforms and decided to use BlogEngine.Net due to its simplicity, robust core and ease of extendability.

    BlogEngine.Net can be extended in many ways, we can create themes, widgets, controls and our own custom extensions.

    Extensions allows you to write a class that can hook up to all the various events that are exposed in the application in a very simple manor. Following are links to some good articles on how to develop BlogEngine.Net extensions:

    Categories: BlogEngine.Net Tags: