Putting an image on default.aspx

Oct 26, 2010 at 10: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.

Thanks.

 

Oct 27, 2010 at 3:19 PM

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

Coordinator
Oct 27, 2010 at 4: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
<% } %>