How show hide content on main page?

Topics: ASP.NET 2.0
Jun 5, 2011 at 1:49 PM

Hi All,

I want to show some special content only on the homepage.

Homepage itself is a BE page.

I am trying this in the site.master but I am unable to distinguish between the homepage and the currently loading page.

Please let me know how can I do this.

Thanks For Your Help In Advance.

Jun 5, 2011 at 6:00 PM

Depending on what your home page is you can always check request URL to check what page or post is being loaded. Here is something that I discusses on customizing view of a post.

http://www.byteblocks.com/post/2011/05/27/Customize-View-Of-PostView-In-BlogEngine.aspx