Hi,
I am a beginner in ASP.Net and i am glad that i found the right book for me.
Currently, i am working on chapter 8, and i am on page 283(implementing the NavigateUrl property) .I am trying to add code to the code behind of AboutUs.aspx, where i get an error, that "Banner1 does not exist in current context". here is the code.
Code:
public partial class AboutUs : BasePage
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
Banner1.DisplayDirection = Direction.Vertical;
}
}
}
I also checked the ID of Banner in masterpage and it is the same as Banner1. Also everything before this seem to work perfectly fine. Could you pls let me know, where am i making mistake?
thanx!
Arya