From: Ivar on
Hi there,

I'm working on creating a web page having two sections. The top one does not
change (it loads the data from a database once) and the second section has
two possible schemas (it's actually two different pages). The solution I have
found is to create two horizontal frames and set the first page as the source
for the first frame and then programmatically change the source for the
second frame to display one of the other two possible pages.
I have seen VS 2005 does not have a frameset control and I had to add it
manually in the aspx file. My questions are:

1) Why VS2005 does not have support for the <frameset><frame> control?
2) Is it possible to accomplish this result with a different aproach with no
frames?
3) Is the use of frameset an outdated practice? If yes why?
4) What's the difference between frame and iframe? Is it's use a good
practice?

Thank you very much,
Ivar
From: Mark Rae [MVP] on
"Ivar" <Ivar(a)discussions.microsoft.com> wrote in message
news:6FC78A2C-D90F-487B-885B-C5EFCB5DF977(a)microsoft.com...

> 1) Why VS2005 does not have support for the <frameset><frame> control?

It is supported like every other piece of HTML is supported...

> 2) Is it possible to accomplish this result with a different aproach with
> no
> frames?

MasterPages create a similar sort of effect as framesets, although
architecturally they are very different - MasterPages are UserControls, and
the entire page gets rebuilt every time the content page changes...

> 3) Is the use of frameset an outdated practice?

Depends which particular "guru" you ask... :-)

> If yes why?

http://apptools.com/rants/framesevil.php
http://www.456bereastreet.com/archive/200411/who_framed_the_web_frames_and_usability/
http://www.sitepoint.com/forums/showthread.php?t=257936&highlight=frames

> 4) What's the difference between frame and iframe?

Frames need to live within a frameset (OK, that's not 100% accurate) but
iframes are inline frames which mean that they live within the main page and
allow independent content.

> Is its use a good practice?

There's no real need for them any more, IMO, especially with the advent of
AJAX which supports updating of page sections via callback without needing
to postback the entire page...


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

From: Ivar on
Thank you. I did not find an explanation like yours before, this is why I
posted it here. Thanks again.

Ivar

"Mark Rae [MVP]" wrote:

> "Ivar" <Ivar(a)discussions.microsoft.com> wrote in message
> news:6FC78A2C-D90F-487B-885B-C5EFCB5DF977(a)microsoft.com...
>
> > 1) Why VS2005 does not have support for the <frameset><frame> control?
>
> It is supported like every other piece of HTML is supported...
>
> > 2) Is it possible to accomplish this result with a different aproach with
> > no
> > frames?
>
> MasterPages create a similar sort of effect as framesets, although
> architecturally they are very different - MasterPages are UserControls, and
> the entire page gets rebuilt every time the content page changes...
>
> > 3) Is the use of frameset an outdated practice?
>
> Depends which particular "guru" you ask... :-)
>
> > If yes why?
>
> http://apptools.com/rants/framesevil.php
> http://www.456bereastreet.com/archive/200411/who_framed_the_web_frames_and_usability/
> http://www.sitepoint.com/forums/showthread.php?t=257936&highlight=frames
>
> > 4) What's the difference between frame and iframe?
>
> Frames need to live within a frameset (OK, that's not 100% accurate) but
> iframes are inline frames which mean that they live within the main page and
> allow independent content.
>
> > Is its use a good practice?
>
> There's no real need for them any more, IMO, especially with the advent of
> AJAX which supports updating of page sections via callback without needing
> to postback the entire page...
>
>
> --
> Mark Rae
> ASP.NET MVP
> http://www.markrae.net
>
>
From: Hal Rosser on

"Ivar" <Ivar(a)discussions.microsoft.com> wrote in message
news:6FC78A2C-D90F-487B-885B-C5EFCB5DF977(a)microsoft.com...
> Hi there,
>
> I'm working on creating a web page having two sections. The top one does
> not
> change (it loads the data from a database once) and the second section has
> two possible schemas (it's actually two different pages). The solution I
> have
> found is to create two horizontal frames and set the first page as the
> source
> for the first frame and then programmatically change the source for the
> second frame to display one of the other two possible pages.
> I have seen VS 2005 does not have a frameset control and I had to add it
> manually in the aspx file. My questions are:
>
> 1) Why VS2005 does not have support for the <frameset><frame> control?
> 2) Is it possible to accomplish this result with a different aproach with
> no
> frames?
> 3) Is the use of frameset an outdated practice? If yes why?
> 4) What's the difference between frame and iframe? Is it's use a good
> practice?
>
> Thank you very much,
> Ivar

I believe the W3C is deprecating frames, framesets, and Iframes in favor of
using div tags and css.
xhtml is (slowly) replacing html.


From: Mark Rae [MVP] on
"Hal Rosser" <hmrosser(a)bellsouth.net> wrote in message
news:mP29j.21451$vt2.5034(a)bignews8.bellsouth.net...

> I believe the W3C is deprecating frames, framesets, and Iframes in favor
> of using div tags and css.

How did you arrive at that conclusion...?
http://www.w3.org/TR/html401/present/frames.html
http://www.w3.org/TR/html401/sgml/framesetdtd.html
http://www.w3.org/TR/xhtml1/dtds.html#a_dtd_XHTML-1.0-Frameset
http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_framesmodule


> xhtml is (slowly) replacing html.

Depends who you talk to:
http://www.webdevout.net/articles/beware-of-xhtml


--
Mark Rae
ASP.NET MVP
http://www.markrae.net