what is IFrame

G

Guest

Hi All,
IFrame is a HtmlGenericControl name??
Where can i get this IFrame control at vs.net 2003?
Any example and guideline for IFRAME?

Thank you.

Best regards,
Ocurnos.
 
L

Lucas Tam

Hi All,
IFrame is a HtmlGenericControl name??
Where can i get this IFrame control at vs.net 2003?
Any example and guideline for IFRAME?


There is no Iframe control in VS.NET. You can create it with
HTMLGenericControl or output the code manually with a Literal Control.
 
N

Nathan Sokalski

An IFRAME is an HTML element whose content is determined by another file
(usually an html file, but any valid web page URL). The content of that URL
is displayed inside an inline frame, which is basically a rectangle (if you
want to, you can think of it as a single cell table that gets it's content
from another file). A page that give a good description and syntax of an
IFRAME can be found at:

http://www.devguru.com/Technologies/html/quickref/html_iframe.html

The only way to enter an IFRAME using Visual Studio .NET 2003 is to start
typing the tag and then select it from the list that is displayed (or type
the whole thing manually). Good Luck!
 
D

Dave Fancher

....or, more specifically with the HtmlGenericControl option, if you notice,
one of the constructor overloads for HtmlGenericControl takes a string for
the Tag Name. You can create an IFRAME by using this constructor if you
want to create it dynamically or, if you already have an IFRAME defined on
your page, you can give it an ID and set runat="server" (make sure you
declare it in your code behind if you're using codebehinds).

http://msdn.microsoft.com/library/d...lcontrolshtmlgenericcontrolclassctortopic.asp

HTH
 
G

Guest

thanks the respond...

Nathan Sokalski said:
An IFRAME is an HTML element whose content is determined by another file
(usually an html file, but any valid web page URL). The content of that URL
is displayed inside an inline frame, which is basically a rectangle (if you
want to, you can think of it as a single cell table that gets it's content
from another file). A page that give a good description and syntax of an
IFRAME can be found at:

http://www.devguru.com/Technologies/html/quickref/html_iframe.html

The only way to enter an IFRAME using Visual Studio .NET 2003 is to start
typing the tag and then select it from the list that is displayed (or type
the whole thing manually). Good Luck!
 
J

John Horst

Daniel:

Enter the tag manually in the HTML like this:

<iframe runat="server" id="frmSomeName" src="somefile.aspx"></iframe>

You can also add width and height. By putting the runat="server" and
id="..." attributes you will be able to manipulate the attributes in
server-side code. You would do that like this:

frmSomeName.Attributes["src"] = "someotherpage.htm";

You can access and manipulate any of the attributes that way.

John

-----Original Message-----
From: Daniel [mailto:D[email protected]]
Posted At: Tuesday, August 30, 2005 7:07 AM
Posted To: microsoft.public.dotnet.framework.aspnet
Conversation: what is IFrame
Subject: Re: what is IFrame


thanks the respond...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,278
Latest member
BuzzDefenderpro

Latest Threads

Top