Menu in an Include file

Results 1 to 2 of 2

Thread: Menu in an Include file

  1. #1
    SteveW Guest

    Default Menu in an Include file

    I want to put a navigation bar in an include file. Problem is, I open my HTML, header and body tags in the include file and then close them in my content page (after the content).<BR><BR>Pproblem is, with that arrangement I would be stuck with the same header file for all my pages....<BR><BR>I have a feeling I&#039;m missing something very simple...

  2. #2
    Robbe Guest

    Default RE: Menu in an Include file

    Everybody&#039;s brain gets stuck in neutral on occasion.<BR><BR>Don&#039;t put the standard HTML opening tags (HTML,BODY,etc...) in the code that creates the navigation bar. Then, put the code that creates the nav bar in a function/sub inside the include.<BR>Of course, then call the function/sub wherever you need the nav bar output in your primary page. Leaving ASP functionality outside of functions/subs always creates the type of hassle you referrenced. The more you modulize your ASP functions/subs the better off you&#039;ll be...<BR>Hope this helps.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts