Author: contraboybish | Posted on: 7/27/2008 6:35:18 AM | Views : 998

I have code in my image click event which opens a new window when the end user clicks

on the image. I need a new page/tab to open up and below is one version of how i

do it.

The issue l have is this always get stopped by the popup blocker and l want it to open

up a new tab without forcing the popup or loosing the initil page!!




protected void ImageButton1_Click(object sender, ImageClickEventArgs e)

{

Code here connects to Access and does its job then below is actioned.........

try

{

conn.Open();

sdc.ExecuteNonQuery();

string url = "http://gosomewhere.com/";

Response.Write("");

Response.Write("parent.framename.location.replace('url');");

Response.Write("");

}

}




Any th ...

Go to the complete details ...