Open aspx file with javascript-C#

T

THM5101

Hello
I'm trying to open aspx file from click event in
imageButton ( C# code). In the imageButton I have a small
picture and when I click on the image I need to open new
page (without closed the main page) with a big picture.

My code in Imag_Click event:
string script = "<script language='javascript'>window.open
('C:/Inetpub/wwwroot/test/bigPic.aspx', 'Streaming', 'width
=400, height=600, location=no, menubar=no, status=no,
toolbar=no, scrollbars=yes, resizable=no')</script>" ;
Page.RegisterClientScriptBlock("Open", script);

My problem.
The window is open empty. I have TextBox and image in the
window but I can't see them. Why?

If I open the bigPic.aspx page as a start page I can see
the Textbox and the image. So the are on the page.
Thank you.
 

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

Top