Search:
Namespaces
Discussions
.NET v1.1
Feedback
Frameset runat server tags?
Messages
Related Types
This message was discovered on
ASPFriends.com 'aspngbeta' list
.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.
I was curious....
It looks liek most of the HTML tags have .NET versions, with the ability to
alter them programmatically.
All except FRAME and FRAMESET.
Am I missing something?
Soulhuntre
----------
email:
Click here to reveal e-mail address
url:
http://www.soulhuntre.com
corp:
http://www.dotpublishing.com
life: http://www.the-estate.com
Reply to this message...
Stuart C. Salsbury
You're right, I think. They haven't created an HtmlFrame class or the like.
As the <frame> element itself does not cry out for dynamism, I don't think
this is too much of a shortcoming. Most dynamic features of a frameset are
a matter of intricate JavaScript, right? You can create such a control
yourself -- we plan to do so, mainly as a way to allow the majority of our
content pages to live in blissful ignorance as to whether or not they are
living framed or unframed, with JavaScript filling the gaps.
Regards,
Stuart Salsbury
Ernst & Young LLP
-----Original Message-----
From:
Click here to reveal e-mail address
[mailto:
Click here to reveal e-mail address
]
Sent: Thursday, May 10, 2001 5:21 PM
To: aspngbeta
Subject: [aspngbeta] Frameset runat server tags?
I was curious....
It looks liek most of the HTML tags have .NET versions, with the ability to
alter them programmatically.
All except FRAME and FRAMESET.
Am I missing something?
Soulhuntre
----------
email:
Click here to reveal e-mail address
url:
http://www.soulhuntre.com
corp:
http://www.dotpublishing.com
life:
http://www.the-estate.com
| [aspngbeta] member
Click here to reveal e-mail address
= YOUR ID
|
http://www.asplists.com/asplists/aspngbeta.asp
= JOIN/QUIT
Reply to this message...
Andy Smith (VIP)
There are actually MANY html tags that don't have
HtmlControl
equivalents.
From what I can tell... they chose the ones they did because they make =
sense for webforms.
This does not stop you from creating your own control.
All you would need to do is subclass from
HtmlControl
or HtmlContainerContr=
ol, add the tag-specific properties, and override the render method.
Andy Smith
Staff Programmer
Harding ESE
-----Original Message-----
From:
Click here to reveal e-mail address
=20
Sent: Thursday, May 10, 2001 3:21 PM
To: "aspngbeta" <
Click here to reveal e-mail address
>
Subject: [aspngbeta] Frameset runat server tags?
=09
I was curious....
It looks liek most of the HTML tags have .NET versions, with the ability =
to
alter them programmatically.
All except FRAME and FRAMESET.
Am I missing something?
Soulhuntre
----------
email:
Click here to reveal e-mail address
url:
http://www.soulhuntre.com
corp:
http://www.dotpublishing.com
life:
http://www.the-estate.com
| [aspngbeta] member
Click here to reveal e-mail address
=3D YOUR ID
|
http://www.asplists.com/asplists/aspngbeta.asp
=3D JOIN/QUIT
Reply to this message...
David Ebbo
Actually, it is really not the case that "most of the HTML tags have
.NET versions". Only a small subset do. However, keep in mind that you
can put runat=3Dserver on *any* HTML tag, in which case it becomes an
HtmlGenericControl
, which lets you access the attributes.
-----Original Message-----
From: Stuart C. Salsbury [mailto:
Click here to reveal e-mail address
]=20
Sent: Thursday, May 10, 2001 10:14 PM
To: aspngbeta
Subject: [aspngbeta] RE: Frameset runat server tags?
You're right, I think. They haven't created an HtmlFrame class or the
like. As the <frame> element itself does not cry out for dynamism, I
don't think this is too much of a shortcoming. Most dynamic features of
a frameset are a matter of intricate JavaScript, right? You can create
such a control yourself -- we plan to do so, mainly as a way to allow
the majority of our content pages to live in blissful ignorance as to
whether or not they are living framed or unframed, with JavaScript
filling the gaps.
Regards,
Stuart Salsbury
Ernst & Young LLP
-----Original Message-----
From:
Click here to reveal e-mail address
[mailto:
Click here to reveal e-mail address
]
Sent: Thursday, May 10, 2001 5:21 PM
To: aspngbeta
Subject: [aspngbeta] Frameset runat server tags?
I was curious....
It looks liek most of the HTML tags have .NET versions, with the ability
to alter them programmatically.
All except FRAME and FRAMESET.
Am I missing something?
Soulhuntre
----------
email:
Click here to reveal e-mail address
url:
http://www.soulhuntre.com
corp:
http://www.dotpublishing.com
life:
http://www.the-estate.com
| [aspngbeta] member
Click here to reveal e-mail address
=3D YOUR ID=20
|
http://www.asplists.com/asplists/aspngbeta.asp
=3D JOIN/QUIT
| [aspngbeta] member
Click here to reveal e-mail address
=3D YOUR ID=20
|
http://www.asplists.com/asplists/aspngbeta.asp
=3D JOIN/QUIT
Reply to this message...
dave 123aspx.com (VIP)
Hi,
You can still use the runat="server" attribute for frameset tags. To access frameset tags from codebehind you will need to declare them as
HtmlGenericControl
. Here is an example of adding attributes to a frameset tag..
.aspx page
<frame id=frame1 runat="server" />
from .vb codebehind file
Public frame1 as
HtmlGenericControl
Sub Page_Load(sender As Object, e As EventArgs)
Dim SendToMsdn as Boolean = True
If SendToMsdn Then
frame1.attributes.add("src","
http://msdn.microsoft.com"
;)
else
frame1.attributes.add("src","
http://www.yahoo.com"
;)
End IF
End Sub
Cheers!
dave
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://www.123aspx.com
The Largest ASP.NET Web Directory!
Find the latest ASP.NET resources --
Subscribe to our newsletter!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
---------- Original Message ----------------------------------
From: "Andy Smith" <
Click here to reveal e-mail address
>
Reply-To: "aspngbeta" <
Click here to reveal e-mail address
>
Date: Fri, 11 May 2001 08:39:21 -0600
[Original message clipped]
Reply to this message...
System.EventArgs
System.Web.UI.HtmlControls.HtmlContainerControl
System.Web.UI.HtmlControls.HtmlControl
System.Web.UI.HtmlControls.HtmlGenericControl
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com