473,378 Members | 1,378 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,378 software developers and data experts.

Change Iframe in a aspx

Hey,
Maybe I am in the wrong newsgroup.

I am writing an browserapplication. In the webpage I have 2 parts a fixed part and a variable part. The variable part is an IFRAME.
If I press a button in the fixed part, I want to change the contents of my IFrame (= changing the source of my Iframe to another webpage).

How do I do this?
The Iframe I can not maged it from my c-sharp code (I don't see it as a webcontrol).

Thanks
Jac
Nov 16 '05 #1
4 2974
The button on the fixed part should just be a link with a "target" attribute
equal to the id of the Iframe, and that points to the page that now want
displayed within your iframe. An example:

on the static part:
<a href="newIframepage.aspx?par1=something" target="myIFrame">Click me to
change the Iframe</a>

then on the varialbe part:
<iframe id="myIFrame" (other attributes I'm sure go here) >

HTH,
-Cliff

"Jaco" <Ja**@discussions.microsoft.com> wrote in message
news:ED**********************************@microsof t.com...
Hey,
Maybe I am in the wrong newsgroup.

I am writing an browserapplication. In the webpage I have 2 parts a fixed part and a variable part. The variable part is an IFRAME. If I press a button in the fixed part, I want to change the contents of my IFrame (= changing the source of my Iframe to another webpage).
How do I do this?
The Iframe I can not maged it from my c-sharp code (I don't see it as a webcontrol).
Thanks
Jac

Nov 16 '05 #2
Jac
It dont' work.
It opens a new window with the contents of the webpage. It don't show in my iframe.

How can I fix it?
Jac

"Cliff Harris" wrote:
The button on the fixed part should just be a link with a "target" attribute
equal to the id of the Iframe, and that points to the page that now want
displayed within your iframe. An example:

on the static part:
<a href="newIframepage.aspx?par1=something" target="myIFrame">Click me to
change the Iframe</a>

then on the varialbe part:
<iframe id="myIFrame" (other attributes I'm sure go here) >

HTH,
-Cliff

"Jaco" <Ja**@discussions.microsoft.com> wrote in message
news:ED**********************************@microsof t.com...
Hey,
Maybe I am in the wrong newsgroup.

I am writing an browserapplication. In the webpage I have 2 parts a fixed

part and a variable part. The variable part is an IFRAME.
If I press a button in the fixed part, I want to change the contents of my

IFrame (= changing the source of my Iframe to another webpage).

How do I do this?
The Iframe I can not maged it from my c-sharp code (I don't see it as a

webcontrol).

Thanks
Jac


Nov 16 '05 #3
Jac
Found it, the Iframe must have a NAME not an ID

"Jac" wrote:
It dont' work.
It opens a new window with the contents of the webpage. It don't show in my iframe.

How can I fix it?
Jac

"Cliff Harris" wrote:
The button on the fixed part should just be a link with a "target" attribute
equal to the id of the Iframe, and that points to the page that now want
displayed within your iframe. An example:

on the static part:
<a href="newIframepage.aspx?par1=something" target="myIFrame">Click me to
change the Iframe</a>

then on the varialbe part:
<iframe id="myIFrame" (other attributes I'm sure go here) >

HTH,
-Cliff

"Jaco" <Ja**@discussions.microsoft.com> wrote in message
news:ED**********************************@microsof t.com...
Hey,
Maybe I am in the wrong newsgroup.

I am writing an browserapplication. In the webpage I have 2 parts a fixed

part and a variable part. The variable part is an IFRAME.
If I press a button in the fixed part, I want to change the contents of my

IFrame (= changing the source of my Iframe to another webpage).

How do I do this?
The Iframe I can not maged it from my c-sharp code (I don't see it as a

webcontrol).

Thanks
Jac


Nov 16 '05 #4
Jac
The code below is pure html.
Now i want to do it in the code behind a button (C-sharp) When i push a button I go to the server and there we test om some criteria. Depends on which criteria the Iframe must show an other page. It is like a redirect but only in the Iframe not the whole page.

Tks,
Jac

"Jac" wrote:
Found it, the Iframe must have a NAME not an ID

"Jac" wrote:
It dont' work.
It opens a new window with the contents of the webpage. It don't show in my iframe.

How can I fix it?
Jac

"Cliff Harris" wrote:
The button on the fixed part should just be a link with a "target" attribute
equal to the id of the Iframe, and that points to the page that now want
displayed within your iframe. An example:

on the static part:
<a href="newIframepage.aspx?par1=something" target="myIFrame">Click me to
change the Iframe</a>

then on the varialbe part:
<iframe id="myIFrame" (other attributes I'm sure go here) >

HTH,
-Cliff

"Jaco" <Ja**@discussions.microsoft.com> wrote in message
news:ED**********************************@microsof t.com...
> Hey,
> Maybe I am in the wrong newsgroup.
>
> I am writing an browserapplication. In the webpage I have 2 parts a fixed
part and a variable part. The variable part is an IFRAME.
> If I press a button in the fixed part, I want to change the contents of my
IFrame (= changing the source of my Iframe to another webpage).
>
> How do I do this?
> The Iframe I can not maged it from my c-sharp code (I don't see it as a
webcontrol).
>
> Thanks
> Jac

Nov 16 '05 #5

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

Similar topics

5
by: jim.frantzen | last post by:
You have an active XMLHTTP request on the main page (localhost/App1/index.aspx) The XMLHTTP request takes about 60 seconds to receive a response back from localhost/App1/getxml.aspx. You have an...
3
by: Stevie_mac | last post by:
It might be me but... I dont seem to get a Page_Load event when a opening an ASPX in an iFrame. I do geta Page_Load event when an item on the ASPX (inside the iFrame) is clicked but then...
1
by: Jan Van Steenbergen | last post by:
Hi all i'm having a little problem I have a aspx file with a iFrame defined The iframe is loaded with a html webeditor After editing data in the webeditor textbox, i want t get the data to a...
3
by: Timo | last post by:
In javascript code on MyPage.aspx, I set a hidden IFRAME's source url: myframe.location.href = 'someotherpage.aspx'; If the session has timed out, preventing someotherpage.aspx from being...
5
by: Nikolay Petrov | last post by:
I have an aspx page with an IFRAME in it. I change the contents of this IFRAME from a NAV menu. What I need is, to load the master aspx page and load a page in the IFRAME from a link in another...
0
by: Chukka | last post by:
I have iframe inside Firstpage.aspx page like this... <IFRAME id="IFrame_One" style="WIDTH: 1029px; HEIGHT: 425px" name="IFrame_Documents" marginWidth="0" marginHeight="0"...
1
by: gary.comstock | last post by:
We have a non asp web page that contains a hyperlink which opens an iframe. The iframe is hidden until the hyperlink is selected then javascript toggles the visibility to 'visible'. Inside the...
1
by: epower | last post by:
Hello, I am working on an ASP .NET application in Visual Studio 2005 and running IE7. This application has a page that contains an iframe which loads an .aspx page and hyperlinks that...
1
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.