ImageButton open in new window

N

News

Hi,

I have an asp.net page which uses an ImageButton. I'd like to open a new
page in a new window when i click on this image.
How can I do this ?
Eventually, my code looks like this :

private void imbtPrint_Command(object sender,
System.Web.UI.WebControls.CommandEventArgs e)

{

// Do some checks

// ...

if( OK )

{

Response.Redirect(page_to_open_in_new_window);

}

}

Thanks,
Laurent.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top