Open aspx file with javascript-C#

  • Thread starter Thread starter THM5101
  • Start date Start date
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.
 
Back
Top