I am having trouble getting my HyperLink control to go to the desired
navigation page. I have an image control on an ASP.NET page. When that image
control is clicked it creates a HyperLink control with the respective
properties, but it does not go to the desired page that I want. I do not know
how to make the new HyperLink control execute so that it was as if the
HyperLink was clicked. Here is the code:
private void Image1_Click(object sender, System.Web.UI.ImageClickEventArgs e)
{
HyperLink link = new HyperLink();
link.NavigateUrl = "Page.aspx?" + strGuid;
link.Target = "_Blank";
}