473,657 Members | 2,435 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Iframe

I want to put an Iframe on a webform page. How do I get the Iframe's source
file to change at the press of button control on a web form (containing the
iframe). Preferabaly without javascript, postbacks are acceptable. Cheers.
Nov 19 '05 #1
5 2505
I realise that you have to use client side code this creates a problem as I
need to code to execute on the server before the iframe loads.

"Chris Kennedy" <ck************ **@bleyonder.co .uk> wrote in message
news:uN******** ******@TK2MSFTN GP15.phx.gbl...
I want to put an Iframe on a webform page. How do I get the Iframe's source file to change at the press of button control on a web form (containing the iframe). Preferabaly without javascript, postbacks are acceptable. Cheers.

Nov 19 '05 #2
Hi Chris,

Your iFrame is just holding a regular .aspx page. So in the click event of
that button on the server side run your code and then do a
Response.Redire ct() to your new page. Good luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.

"Chris Kennedy" <ck************ **@bleyonder.co .uk> wrote in message
news:uN******** ******@TK2MSFTN GP15.phx.gbl...
I want to put an Iframe on a webform page. How do I get the Iframe's source file to change at the press of button control on a web form (containing the iframe). Preferabaly without javascript, postbacks are acceptable. Cheers.

Nov 19 '05 #3
Sorry I'm not understanding you. It is webform containing an iframe I
thought you needed javascript to change an inline frame. I need to change
the iframe from the webform. Could you demonstrate with a little code to
make thing clearer. Cheers.

"Ken Dopierala Jr." <kd*********@wi .rr.com> wrote in message
news:ux******** *****@TK2MSFTNG P15.phx.gbl...
Hi Chris,

Your iFrame is just holding a regular .aspx page. So in the click event of that button on the server side run your code and then do a
Response.Redire ct() to your new page. Good luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.

"Chris Kennedy" <ck************ **@bleyonder.co .uk> wrote in message
news:uN******** ******@TK2MSFTN GP15.phx.gbl...
I want to put an Iframe on a webform page. How do I get the Iframe's

source
file to change at the press of button control on a web form (containing

the
iframe). Preferabaly without javascript, postbacks are acceptable. Cheers.


Nov 19 '05 #4
if you need to load the iframe from Code behind

iframe1.Attribu tes["src"] = strUrl;

To set this from Code behind your iframe need to be runat=server
<iframe runat="server" id="iframe1" >

if you need to load the iframe from Javascript
document.all("i frame1").src = strUrl;

pls let me know incase any questions

"Chris Kennedy" wrote:
Sorry I'm not understanding you. It is webform containing an iframe I
thought you needed javascript to change an inline frame. I need to change
the iframe from the webform. Could you demonstrate with a little code to
make thing clearer. Cheers.

"Ken Dopierala Jr." <kd*********@wi .rr.com> wrote in message
news:ux******** *****@TK2MSFTNG P15.phx.gbl...
Hi Chris,

Your iFrame is just holding a regular .aspx page. So in the click event

of
that button on the server side run your code and then do a
Response.Redire ct() to your new page. Good luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.

"Chris Kennedy" <ck************ **@bleyonder.co .uk> wrote in message
news:uN******** ******@TK2MSFTN GP15.phx.gbl...
I want to put an Iframe on a webform page. How do I get the Iframe's

source
file to change at the press of button control on a web form (containing

the
iframe). Preferabaly without javascript, postbacks are acceptable. Cheers.



Nov 19 '05 #5
Hi Chris,

What is in the iFrame? What is the 'src' property equal to? If it is
another .aspx page then when you click a button a postback for that page
will occur like you want. In that button's click even just put:

Response.Redire ct("NextPage.as px")

The iFrame will then display the next page and the other frames won't
change. Remember that when your page in the frame posts back it isn't going
to post back to the webform containing the iFram but to itself. Ken.

"Chris Kennedy" <ck************ **@bleyonder.co .uk> wrote in message
news:O0******** ********@TK2MSF TNGP12.phx.gbl. ..
Sorry I'm not understanding you. It is webform containing an iframe I
thought you needed javascript to change an inline frame. I need to change
the iframe from the webform. Could you demonstrate with a little code to
make thing clearer. Cheers.

"Ken Dopierala Jr." <kd*********@wi .rr.com> wrote in message
news:ux******** *****@TK2MSFTNG P15.phx.gbl...
Hi Chris,

Your iFrame is just holding a regular .aspx page. So in the click event

of
that button on the server side run your code and then do a
Response.Redire ct() to your new page. Good luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.

"Chris Kennedy" <ck************ **@bleyonder.co .uk> wrote in message
news:uN******** ******@TK2MSFTN GP15.phx.gbl...
I want to put an Iframe on a webform page. How do I get the Iframe's

source
file to change at the press of button control on a web form
(containing
the
iframe). Preferabaly without javascript, postbacks are acceptable.

Cheers.



Nov 19 '05 #6

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

Similar topics

2
9360
by: Csaba2000 | last post by:
I want to be able to embed a single quote into an INPUT element within a dynamically generated IFRAME. The example below shows how the IFRAME is generated. Challenge: I'd like the alert box to show: Mom said, "Don't" instead of the current: Mom said, "Do not". The point of the exercise is that I will be passing arbitrary strings to the IFRAME and I want to ensure that the final string is the same as the original. So I'm interested...
4
7610
by: Thomas | last post by:
Hi there, I have an iframe which is editable (designMode = "on") and want to resize it dynamically as the content grows (e.g. more lines of text is in there) and there the struggle starts. I fill the iframe with content (<body> tag and so on and also insert a <div> tag, inbetween is the content that should be modified). Now if the event "overflow" or "underflow" is triggered the iframe
2
47322
by: Templar | last post by:
Hi i'm bothering with such problem... I must dynamic create an Iframe, and then put som raw HTML into it. But I can't. When I create iframe, I can't access its properties. Here's the coe snipplet: //************************************* //*************************************
1
24627
by: Martin | last post by:
There seems to be some strange behaviour when trying to get the scrollHeight and scrollTop of an iframe in IE6. I have tried several ways of getting these values when the iframe is written into the html. The following return the correct values in IE6, where the iframe's id is 'f': f.document.body.scrollHeight f.document.body.scrollTop window.frames.document.body.scrollHeight
7
4843
by: Christopher J. Hahn | last post by:
I'm trying to use a script-generated form to submit to a script-generated iframe. The problem I'm running into is that the iframe is not assuming the name I assign it. IE6 on Win2000. FF1.0.2+ doesn't seem to have the problem. I'm doing: this.iframe = document.createElement( 'iframe' ); this.iframe.id = this.id + 'wh'; this.iframe.style.display = 'none';
3
8131
by: Angel | last post by:
How do I get the reference of the IFrame from the asp.net webpage that is being displayed within that IFrame? In other words I have an IFrame in my page. Within that IFrame Set the source to a different asp.net page. I want on that page that is within the IFrame to be able to access the IFrame object. How can that be done? Besides the reference to the IFrame but also certain other objects that are in the Host page of the Iframe. thanks...
0
7768
by: tequilamala | last post by:
I have an Iframe in one of the pages i am developing... the iframe is suppose to scroll up and down and the links target the iframe. the problem is that the iframe scrolls side to side on internet explorer but not on firefox. I dont want it to scroll sideways. in index.htm the iframe is at the bottom of the code. index.htm <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">...
1
8123
by: Z1P2 | last post by:
I would like to gradually resize an iframe in an onmouseover event. I can easily do it with an image, but when I try to do it with an iframe, it doesn't do anything. So first of all, is it possible to gradually zoom an iframe, and if so, what am I missing? Here is the script I am trying to manipulate, between the head tags: <script language=JavaScript> /**** adjust these two parameters to control how fast or slow
1
4887
by: cdmsenthil | last post by:
I have an Infragistics UltrawebGrid . Each Row in the grid is attached to a context menu using Infragistics CSOM Upon click on the menu, I am creating an Iframe dynamically which points to another page in the same domain which also contains infragistics datagid populated with default data retrieved from Data Base. After creating the frame I am attaching it to the HTML DOM and show it as modal popup with OK and Cancel Button inside an...
23
6583
by: vunet | last post by:
It is recommended by some sources I found to create IFrames in IE using document.createElement('<iframe src="#">') instead of document.createElement('iframe'). Why and what browser versions to use it? IE5 or IE6? Thanks
0
8395
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8310
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8826
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8605
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7330
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4155
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4306
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1615
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.