Csharp Code Samples

Rohan’s Blog – C# .NET Programming
  • rss
  • Home
  • About
  • Search
  • Contact Me

Asp.net Permalinks Using URL Rewriting

Rohan Warang | March 25, 2009

A Permalink is a permanent link which points to a particular blog entry or forum entry. For example the permalink for this blog article is http://csharp-codesamples.com/2009/03/aspnet-permalinks-using-url-rewriting.

This does not mean that a physical page is created for each blog entry. Instead a single page shows the data for multiple blogs articles dynamically based on some query string.

But all pages in asp.net end with a .aspx extension and if we pass a query string to the page it will look something like Page.aspx?query=test. These links are not very search engine friendly.

This article describes a simple method to create permalinks and improve your asp.net websites search engine optimization using URL rewriting without the use of custom handlers.

Read the rest of this entry »

Comments
2 Comments »
Categories
Tutorials
Tags
ASP.net, Blog, Permalinks, SEO, URL Remapping, URL Rewriting, Virtual Path
Comments rss Comments rss
Trackback Trackback

The Using Block

Rohan Warang | March 21, 2009

The using block provides proper declaration and dispose of objects that implement IDisposable interface. IDisposable is implemented by managed classes that access unmanaged resources. FileStream is one such classes that accesses IntPtr and SafeFileHandle which are unmanaged handles.

Read the rest of this entry »

Comments
4 Comments »
Categories
Tutorials
Tags
Try Catch, Using
Comments rss Comments rss
Trackback Trackback

Linq Filters On Lists

Rohan Warang | March 18, 2009

Microsoft .net framework 3.5 introduced the Language Integrated Query (Linq) feature. Linq provides a set of query operators to filter, join and perform other such data related operations on various types datasources such as lists, dictionaries, datasets etc.

In this article we perform a simple filter operation on a collection of data stored in a list using the traditional foreach loop method and the linq method and compare the performance statistics.

Read the rest of this entry »

Comments
1 Comment »
Categories
Optimization
Tags
Filters, Linq, Microsoft
Comments rss Comments rss
Trackback Trackback

Threading On Multi-Core CPUs

Rohan Warang | March 2, 2009

A multi-core processor combines two or more independent cores on a single chip. This multi-core architecture is adopted by most modern processors enabling execution of multiple threads simultaneously.

This article concentrates on how to optimize multithreading on multi-core CPUs.

Read the rest of this entry »

Comments
7 Comments »
Categories
Optimization
Tags
CPU, MultiCore, Native Threads, Performance, Threading
Comments rss Comments rss
Trackback Trackback

Subscribe

dZone

Categories

  • Optimization
  • Tutorials

Admin

  • Log in
Creative Commons License rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox