View Single Post
 
Old January 21st, 2008, 04:58 PM
gothael gothael is offline
Authorized User
 
Join Date: Jan 2008
Location: , , .
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I tried the following in my Master page's code behind, but it won't compile:

protected void Page_Load(object sender, EventArgs e)
    {
        if (this.Page is Default)
        {
            imgPageBottom.ImageUrl = "images/footer_home.gif";
        }
    }

I am getting "The type or namespace name "_Default" could not be found. The class name of my home (content) page appears to be "_Default":

public partial class _Default : System.Web.UI.Page

Maybe I've got they syntax wrong? Thanks for the reply, by the way.