Saturday, February 5, 2011

How to publish a asp.net website in Windows 7

1. install the "IIS Metabase and IIS6 Configuration Compatibility" feature under Internet Information Services-Web Management Tools-IIS 6
2. FrontPage 2002 Server Extensions for IIS 7.0
http://www.iis.net/community/default.aspx?tabid=34&g=6&i=1630
3. Compile code to AnyCPU in Build option

Friday, February 4, 2011

How to remove one element from array in Javascript?

How to remove one element from array in Javascript?
myArray = ['a', 'b', 'c', 'd'];
myArray.splice (
0,1);
[
'b', 'c', 'd'];
Reference

Wednesday, February 2, 2011

Enable content expiration in IIS to optimize ASP.Net website

Enable content expiration in IIS to optimize ASP.Net website
Default setting is Off.

To set the expiration of Web site content

1.In IIS Manager, double-click the local computer; right-click the Web Sites folder, an individual Web site folder, a virtual directory, or a file; and then click Properties.
2.Click the HTTP Headers tab.
3.Select the Enable content expiration check box.
4.Click Expire immediately, Expire after, or Expire on, and type the appropriate expiration information in the corresponding boxes.




Tuesday, February 1, 2011

Entity framework does not support HierarchyID, and workaround

Entity framework does not support HierarchyID, and workaround
Answer from MS:
Posted by Microsoft on 5/12/2009 at 6:45 PM
This is on our list of features to be supported in future releases, unfortunately at this point we do not have a timeframe for when it will be added. Thank you


Workaround:
Import function from Store procedure in EF

jQuery 1.5 Released

Adjacent Traversal Performance
In this release we’ve also been able to improve the performance of some commonly-used traversal methods: .children(), .prev(), and .next().

Microsoft CDN: http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.5.min.js