how could we use Framesets in c# 2005?

how could we use Framesets in c# 2005?

Page 1 of 1

9 Replies - 13488 Views - Last Post: 11 January 2008 - 03:31 PM Rate Topic: -----

#1 alphasigma  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 13-September 07

how could we use Framesets in c# 2005?

Post icon  Posted 13 September 2007 - 04:10 PM

how could we use Framesets in c# 2005?
Is This A Good Question/Topic? 0
  • +

Replies To: how could we use Framesets in c# 2005?

#2 Martyr2  Icon User is offline

  • Programming Theoretician
  • member icon

Reputation: 3873
  • View blog
  • Posts: 11,407
  • Joined: 18-April 07

Re: how could we use Framesets in c# 2005?

Posted 13 September 2007 - 06:07 PM

Well as you may have already found out that VS 2005 uses a DOCTYPE that is not compliant (XHTML 1.1) with framesets and actually considers them obsolete. So if you want to use them, you first have to change the DOCTYPE to something that supports framesets.... like XHTML 1.0 with something like...

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">



Then you will just have to write them in by hand. Server controls and such will all work fine though.

They moved away from the framesets because they are simply awkward and discouraged against as a standard for usability. So I would question if you really need them because there are better ways of navigation out there.

Hope this helps!
Was This Post Helpful? 0
  • +
  • -

#3 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1619
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: how could we use Framesets in c# 2005?

Posted 14 September 2007 - 10:32 AM

Instead of using frames I would suggest looking into Master Pages As Martyr2 eluded to frames aren't really compliant anymore, they arent search engine friendly and most companies frown upon using them any longer. Master Pages give you the ability to ensure all look & feel of a site is consistent across the entire site, which is one of the reasons people started using frames in the late 90's/early 200's.

With Master Pages you setup your initial page, then where you want content you add ContentPlaceHolders, which, when a page is created, that is where your content will go.

Here are a few tutorials on using MasterPages:

Beginner's Guide to Master Pages
Master Pages in ASP.Net 2.0
ASP.Net Quick Start Tutorials
Master Pages : From the Ground Up

These should at least give you an excellent start with Master Pages. If you need more help please fell free to ask here and someone will help.

Hope this helps :)
Was This Post Helpful? 0
  • +
  • -

#4 Martyr2  Icon User is offline

  • Programming Theoretician
  • member icon

Reputation: 3873
  • View blog
  • Posts: 11,407
  • Joined: 18-April 07

Re: how could we use Framesets in c# 2005?

Posted 14 September 2007 - 11:09 AM

Nice response Psycho. IT'S TUTORIAL WRITING TIME! haha jk. There you go for your next tutorial Psycho, one on master pages. ;)
Was This Post Helpful? 0
  • +
  • -

#5 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1619
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: how could we use Framesets in c# 2005?

Posted 14 September 2007 - 11:12 AM

Most definitely, already getting a solution setup LOL
Was This Post Helpful? 0
  • +
  • -

#6 alphasigma  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 13-September 07

Re: how could we use Framesets in c# 2005?

Posted 14 September 2007 - 02:04 PM

you're really great guys. thanks for the guides !!
Was This Post Helpful? 0
  • +
  • -

#7 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1619
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: how could we use Framesets in c# 2005?

Posted 14 September 2007 - 03:05 PM

No problem, thats what we're here for :)
Was This Post Helpful? 0
  • +
  • -

#8 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1619
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: how could we use Framesets in c# 2005?

Posted 14 September 2007 - 09:13 PM

alphasigma I wrote an intro to Master Pages tutorial, you might want to take a look at it when you get a chance. Also, I'm moving this thread to the ASP.NET forum, where its more appropriate :)

Introduction To Master Pages in ASP.Net
Was This Post Helpful? 0
  • +
  • -

#9 Pr0ggilicious  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 11-January 08

Re: how could we use Framesets in c# 2005?

Posted 11 January 2008 - 02:11 PM

Hi,

The thing is that Masterpages are awesome, but they do not act like frames. The whole masterpage refreshes and not just part of it...

I'd love to find a way to be able to put my code in one contentplaceholder and have it refresh another contentplaceholder on the same page.. is it even possible? :s
Was This Post Helpful? 0
  • +
  • -

#10 Jayman  Icon User is offline

  • Student of Life
  • member icon

Reputation: 415
  • View blog
  • Posts: 9,532
  • Joined: 26-December 05

Re: how could we use Framesets in c# 2005?

Posted 11 January 2008 - 03:31 PM

View PostPr0ggilicious, on 11 Jan, 2008 - 01:11 PM, said:

I'd love to find a way to be able to put my code in one contentplaceholder and have it refresh another contentplaceholder on the same page.. is it even possible? :s

I would suggest learning AJAX and incorporating it into your ASP.NET page.

AJAX control toolkit.

AJAX control toolkit examples.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1