1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

More links added to multiple web pages

Discussion in 'C#' started by gvm, Sep 16, 2006.

  1. #1
    Hi,

    I created a moreLinks.htm page with just this line of code: <a href="moreLinks.html">More links</a>, and in all the other web pages in a paragraph within div after a list of links I added this line:<!--#include virtual="includes/moreLinks.asp"-->

    The More links is not showing up under my list of other links on my web pages.

    Any ideas?
    Thanks,
    GM
     
    gvm, Sep 16, 2006 IP
  2. ludwig

    ludwig Notable Member

    Messages:
    2,253
    Likes Received:
    66
    Best Answers:
    0
    Trophy Points:
    225
    #2
    <a href="moreLinks.html">More links</a>
    <!--#include virtual="includes/moreLinks.asp"-->

    Are you sure you did everything right ?????
     
    ludwig, Sep 17, 2006 IP
  3. gvm

    gvm Guest

    Messages:
    39
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yes, I believe so. I even tried changing the include directive from <!-- to using <%, but that didn't work either. I am running the web page through localhost as well.
     
    gvm, Sep 17, 2006 IP
  4. gvm

    gvm Guest

    Messages:
    39
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    It looks like if I use the include directive with this tag <!-- the browser sees a comment tag, and if I use this tag <% the include directive line is printed on the html page and not the correct words of More links as hypertext.
     
    gvm, Sep 17, 2006 IP
  5. ludwig

    ludwig Notable Member

    Messages:
    2,253
    Likes Received:
    66
    Best Answers:
    0
    Trophy Points:
    225
    #5
    place your codes here... that'll help
     
    ludwig, Sep 17, 2006 IP
  6. gvm

    gvm Guest

    Messages:
    39
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I placed this directive on my index.html page:
    <p>
    <a href="http://www.google.com">Google</a><br />
    <!-- #include file = "moreLinks.asp" -->
    </p>

    I have a page named moreLinks.asp with this line only:
    <a href="moreLinks.html">More links</a>

    I want the More links hypertext to show on all my web pages in a specific paragraph.
     
    gvm, Sep 17, 2006 IP
  7. gvm

    gvm Guest

    Messages:
    39
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I'm thinking that lls is not parsing the .html file.
     

    Attached Files:

    gvm, Sep 17, 2006 IP
  8. ludwig

    ludwig Notable Member

    Messages:
    2,253
    Likes Received:
    66
    Best Answers:
    0
    Trophy Points:
    225
    #8
    the image you are showing is OK

    anothing thing are you tryin to access your file via C:\............ or http://localhost/.....

    they are different
     
    ludwig, Sep 17, 2006 IP
  9. gvm

    gvm Guest

    Messages:
    39
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    localhost, the web page was developed in frontpage.
     
    gvm, Sep 17, 2006 IP
  10. gvm

    gvm Guest

    Messages:
    39
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Here is what I found. To make the aforementioned includes to work, I must rename index.html to index.asp. Renaming the html to asp will give me an error from the web server where my web site resides when calling the page from the browser.
     
    gvm, Sep 17, 2006 IP
  11. ludwig

    ludwig Notable Member

    Messages:
    2,253
    Likes Received:
    66
    Best Answers:
    0
    Trophy Points:
    225
    #11
    have you read my previous posts????
    and what you found out after a few days
     
    ludwig, Sep 18, 2006 IP
  12. gvm

    gvm Guest

    Messages:
    39
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Insanity is often the logic of an accurate mind overtaxed.
    Oliver Wendell Holmes (1809 - 1894)
    Hope I haven't abused my right to learn asp, I was just getting started.:eek:
     
    gvm, Sep 18, 2006 IP
  13. ludwig

    ludwig Notable Member

    Messages:
    2,253
    Likes Received:
    66
    Best Answers:
    0
    Trophy Points:
    225
    #13
    NO YOU HAVE NOT ABUSED IT, but I can't write a book for explaining here

    I can give you a hint
     
    ludwig, Sep 18, 2006 IP