.NETGURU
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




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification