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

IFRAME reference in code-behind?

Is it possible, in code-behind, to get a handle to an IFRAME on an aspx
page, so the IFRAME's src property can be set by server-side code?
Thanks
AH
Nov 19 '05 #1
5 7147
i dont think thats possible but you could inject the whole iframe html
from behind...

Andreas Heusler wrote:
Is it possible, in code-behind, to get a handle to an IFRAME on an aspx
page, so the IFRAME's src property can be set by server-side code?
Thanks
AH

Nov 19 '05 #2
JV
Haven't specifically tried an IFrame, but it should be possible to access
any HTML object/tag in your document as long as you mark that tag with
RUNAT=SERVER
"Andreas Heusler" <ah******@grammatik.biz> wrote in message
news:Od**************@TK2MSFTNGP09.phx.gbl...
Is it possible, in code-behind, to get a handle to an IFRAME on an aspx
page, so the IFRAME's src property can be set by server-side code?
Thanks
AH

Nov 19 '05 #3
jwk
I did something similar to this using a Literal control, the literal will
contain all the iframe html code. You can modify the literal's output from
the code behind before the page renders.

"Andreas Heusler" wrote:
Is it possible, in code-behind, to get a handle to an IFRAME on an aspx
page, so the IFRAME's src property can be set by server-side code?
Thanks
AH

Nov 19 '05 #4
Yes, I think this should work

--
OHM ( Terry Burns )

http://TrainingOn.net

"JV" <jo**********@goisc.com> wrote in message
news:uD*************@tk2msftngp13.phx.gbl...
Haven't specifically tried an IFrame, but it should be possible to access
any HTML object/tag in your document as long as you mark that tag with
RUNAT=SERVER
"Andreas Heusler" <ah******@grammatik.biz> wrote in message
news:Od**************@TK2MSFTNGP09.phx.gbl...
Is it possible, in code-behind, to get a handle to an IFRAME on an aspx
page, so the IFRAME's src property can be set by server-side code?
Thanks
AH


Nov 19 '05 #5
You can turn any HTML snippet into server side code by adding the
Runat=Server attribute to the tag.
Here's a detailed example of using the IFrame tag from server side code:
http://www.dotnet2themax.com/ShowCon...4-e565c8eab013

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Andreas Heusler" <ah******@grammatik.biz> wrote in message
news:Od**************@TK2MSFTNGP09.phx.gbl...
Is it possible, in code-behind, to get a handle to an IFRAME on an aspx
page, so the IFRAME's src property can be set by server-side code?
Thanks
AH

Nov 19 '05 #6

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

Similar topics

3
by: Hugh G. Johnson | last post by:
I have a knowledgebase (KB) system I installed into my existing dynamicly driven site. I used iFrame to grab the KB and place it in the content area of the page. This works great, but I realize now...
2
by: DaveO | last post by:
Hi All. I have a web with the default startup page as : index.htm that contains an iFrame. The default page, that loads in the iFrame, when index.htm is loaded, is htmPage1.htm I want...
26
by: Dave Hammond | last post by:
In document "A.html" I have defined a function and within the document body have included an IFRAME element who's source is document "B.html". In document "B.html" I am trying to call the function...
5
by: Grzesiek | last post by:
Hi! I have created page which contains some menu buttons and <iframe> with sub-page. Each menu action on the master web site should change content of iframe (by changing src attribute). But how to...
3
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...
6
by: paul | last post by:
HI! How do we send a variable from an Iframe page back to its parent? I have a script that calculates the iframe's window size but I need to know how to send that value back to its parent so I...
14
by: Aaron Gray | last post by:
Hi, I want to access the properties of an IFrame but seem unable to get access to the IFrames document body. <html> <body> <iframe src="test.html" id="IFrame"></iframe> </body>
18
by: Chris Ianson | last post by:
Hi geniuses (or is that genii, or genies) The challenge is as above really. I have a page with an iframe in it, and need to call a JS function in the *parent* page, *from* inside the iframe. ...
1
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...
0
by: mem | last post by:
Hello, I'm a novice at this and am trying to solve a problem reference IFrame. The following code is for a page I've created. It works well with two exceptions. The IFrame is an application hosted...
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...
0
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,...
0
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...
0
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,...

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.