Is it normal behavior for an ImageButton event to not fire if it can't find the image for it. For example, assume I have the following piece of code:
imageLink = new ImageButton();
imageLink.ImageUrl = "~/images/arrow.png";
If the page finds arrow.png, the image click works, but if it doesn't find it, it does not work.
These images are created dynamically and a CommandName, CommandArgument and Click Handler are assigned.
void imageLink_Click(object sender, ImageClickEventArgs e)
{
ImageButton button = (ImageButton)sender;
Detail oDetail = new Detail();
switch(button.CommandName)
{
case "Band":
oDetail.Band = button.CommandArgument;
break;
case "State":
oDetail.State = button.CommandArgument;
break;
}
Session["Page2"] = oDetail;
Response.Redirect("~/Page2.aspx");
}