I am building a search bar in my web portal on asp.net.
I have created a Search1.aspx page in which I have an Image Label having image ID as "Image1". And on the Master Page I have a search button which generates the following event-
protected void Button1_Click(object sender, EventArgs e)
{
Image1.ImageUrl = "~/Handler1.ashx?imgid=" + TextBox1.Text;
}
ERROR- The error which is showing is "Image1 does not exist in current context" in Site1.Master.cs file