October 2009
M T W T F S S
« Sep   Nov »
 1234
567891011
12131415161718
19202122232425
262728293031  

How to use HtmlEncode with TemplateFields, Data Binding, and a GridView

Label ID=”LabelDescription”
           runat=”server”
           Text=’<%# System.Web.HttpUtility.HtmlEncode((string)Eval(”Description”)) %>’

Asp.net Permalinks Using URL Rewriting

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 [...]

JavaScript dateTime function

<!– Paste this code into an external JavaScript file named: dateFormat.js –>

/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: Oded Arbel :: http://geek.co.il/wp/ */

/**
* Extension of the JavaScript internal Date object to allow various formatting of
* date/time values.
* This implementation was designed to be compliant with the [...]