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

Saturday, January 29, 2011

How to config SMTP Server in web.config file

<system.net>
<mailSettings>
<smtp>
<network host="0.0.0.0" port="25" userName="yourusername" password="password"/>
</smtp>
</mailSettings>
</system.net>