Forum Moderators: open

Message Too Old, No Replies

ASP Beginner Help

Help/Directions On Editing & Adding Content To An ASP Website

         

Hawk393

3:01 pm on Feb 26, 2012 (gmt 0)

10+ Year Member



Hi Guys,

As the title says, I'm pretty new to the ASP scene and was wondering if anyone could point me in the right direction with what I need to do.

My bosses at work have asked me if I could edit a website they had built about 2 years before I came to the company, now I have been more of a HTML oritentated developer but have been really wanting to get my hands stuck into some more in depth web programming etc...

What I need help with is my bosses have asked me to add an image to the top of our website "www.example.com" that our customers can click to run a programme that they can install for remote IT support etc...

I have Visual Web Developer 2010 and have downloaded all the files from the FTP server on my PC - how I go about adding this content to the website?

Any help would be much appreciated - advise, video's, links etc...(didn't get much luck on Microsoft's website)

Cheers,

James.

[edited by: Ocean10000 at 7:31 pm (utc) on Feb 26, 2012]
[edit reason] Changed to Example.com Domain [/edit]

Marshall

4:17 pm on Feb 26, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hi James and welcome to WebmasterWorld.

Is the content of the pages generated using asp or do the pages merely have an asp extension to allow them to run some asp scripts? If it is the latter, adding a header should be no different than editing a htm/html page.

Marshall

Hawk393

4:36 pm on Feb 26, 2012 (gmt 0)

10+ Year Member



Hi Marshall,

Thanks for replying to my message!

I'm not 100% sure how it's built, there are many folders and sub folders like: admin, includes, layout, then lots of html pages which I have managed to edit various text and added a temporary link to the top but I don't think the website uses any scripts to generate new pages just scripts to fill in gaps if no content was on the pages like: "Content Coming Soon" etc...?

After been playing around for the past couple of hours it's starting to make sence so I think it's a case of trial and error but as of this moment I wouldn't know completely how to add an image to the top of the home page so I shall have a browse on YouTube and see if they have anything!

Thanks again,

James.

Marshall

6:25 pm on Feb 26, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Since you mentioned the includes folder, sounds as if the .asp is being used to simply "include" (I know, redundant) information on various pages from a central point. This is actually very convenient for updating your site as you can do it from a central location rather than page by page.

I suspect you should see in the raw html view in an editor (meaning not 'view source' on a rendered page) tags like

<!--#include file="header.htm" --> or
<!--#include virtual="/header.htm" --> (Personally, I prefer this method)

This would clearly indicate that, say header information, is edited in the header.htm page, possibly located in your includes folder. You might also have one for the footer, navigation, and so on. The include file should use normal html markup, but generally should not have a <doctype> <html> <header> or <body> tag, that would be in the page the include is located in.

The down side of some includes, especially navigation, is the links. Doing <a href="page.htm"> or <a href="../page.htm"> could cause a broken link depending on the depth of the page. Again, I personally use <a href="/page.htm">, or if it is in a folder,
<a href="/folder/page.htm">

Bottom line, for the purpose I suspect that .asp is being used, I do not thing you will have a problem once you get the hang of it. My suggestion is set up some test pages with the necessary includes and experiment. Take it from me, making an error in a test page is a lot better than doing one that will affect your entire site.

Marshall