473,320 Members | 1,825 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Open aspx file with javascript-C#

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.

Nov 16 '05 #1
1 4416
try "location=yes" instead and see what page it's pointing to...
"THM5101" <an*******@discussions.microsoft.com> wrote in message
news:63****************************@phx.gbl...
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.

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: liam | last post by:
Hi, I have seen this problem is a couple of other places in the group but can't find an answer to it. Basically I have as aspx file that opens properly in Opera but not in IE. IE gives a...
1
by: hoz | last post by:
like asd = Open.File("asdsad.aspx?sunb="+reqid); asd.getoutput();
3
by: SteveC | last post by:
Help... for some strange reason I cannot open .aspx files locally anymore, instead of opening in IE6 I am now promoted to download or open the file and opening the file loads visual studio with the...
2
by: David Lozzi | last post by:
Howdy, Trying to open and read/write another aspx file from my aspx page. Basically I want to be able to update my aspx files from the website. Here's my code so far: Dim path As String =...
3
by: sohan | last post by:
hi I have hyperlink column in a datagrid. The column contains the name of a text file. I am able to appendthe full path of the file. The file is on D drive on the server. But on clicking on...
4
by: tshad | last post by:
At work we are setting up a new web site and had a problem with running a page when using URL: \\phoenix\cdrive\inetpub\wwwroot\hrworkshop\index.aspx It would start up notepad to edit the...
13
by: Bob Jones | last post by:
Here is my situation: I have an aspx file stored in a resource file. All of the C# code is written inline via <script runat="server"tags. Let's call this page B. I also have page A that contains...
5
by: DrNoose | last post by:
Hi! I may have made this post several weeks back, but not sure. I have a project due Thurs. The problem is when I copy the file the the local inetpub/wwwroot folder and try to run the aspx...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.