Putting an image on default.aspx

Oct 26, 2010 at 11:03 PM

Hi there:

I want to put a "Welcome to.." image on default.aspx, but not on any of the other pages. Is this possible? I dont want to add it to the master file.



Oct 27, 2010 at 4:19 PM

Hopefully this is something easy I am just overlooking, but I cant seem to figure it out.

Oct 27, 2010 at 5:54 PM

You can add the following into either the site.master file or the default.aspx file.  It will check to see if you're on the "homepage", and if so, it will display the content.  You can replace "display an image here" with an image tag, or anything else.

<% if (Request.RawUrl.ToUpperInvariant() == Utils.RelativeWebRoot.ToUpperInvariant() + "DEFAULT.ASPX") { %>
	display an image here
<% } %>