how could we use Framesets in c# 2005?
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
Replies To: how could we use Framesets in c# 2005?
#2
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...
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!
<!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!
#3
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
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
#4
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.
#5
Re: how could we use Framesets in c# 2005?
Posted 14 September 2007 - 11:12 AM
Most definitely, already getting a solution setup LOL
#6
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 !!
#7
Re: how could we use Framesets in c# 2005?
Posted 14 September 2007 - 03:05 PM
No problem, thats what we're here for
#8
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
Introduction To Master Pages in ASP.Net
#9
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
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
#10
Re: how could we use Framesets in c# 2005?
Posted 11 January 2008 - 03:31 PM
Pr0ggilicious, 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.
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote





|