Jump to content

Creating global section in ASP


qcom

Recommended Posts

Hello everyone, I was just wondering if it was possible to use ASP to designate certain sections of a web site, like leftnav, content, footer, etc.And then just edit them as separed .aspx files and insert them where I want into a page.So if I just create just 1 .aspx file for the footer, I could just link to that .aspx file in every page that I wanted that footer to appear.Is that possible, I think I saw it being done before, I have NO experience with ASP so I hope this isn't super difficult! :)Thanks,BOSS

Link to comment
Share on other sites

The cons are negligible, the pros outweigh anything. It's much easier on maintenance when you only need to edit information in one place. Any information that your site duplicates across pages would be better in an include file, it's just easier to maintain the site. The only thing that matters with pagerank is the output to the browser. When you use include files and view the source of your page online, that's the same thing the search engine sees.

Link to comment
Share on other sites

Cool, so your saying when you 'view source' (or the equivalent) then the bots would view the exact thing.Wouldn't that be bad though, because all of your content, and therefore your keywords, would be located on a separate file, or would the search engines then index that file and add that pagerank (in the case of google) to the page that is collecting all of those .aspx files?

Link to comment
Share on other sites

If you include a file server-side, the user agent sees a single file. It can't somehow figure out that in reality your page is multiple files patched together. For example, this thread's page is generated dynamically from many sources - but it ends up as one page in the end.

Link to comment
Share on other sites

Just view the source, Luke, and your questions will be answered. If you take a page and split up all of the content, and then include it back together, the source in the browser does not change at all. The search engine would see the exact same thing.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...