Results 1 to 3 of 3

Thread: include file quick question

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Dec 2004
    Posts
    134

    include file quick question

    hi.. i have added a web usercontrol on my webform which basically in it has a design for a header of the webpage..

    i was just wondering is there a way how to add an include file to a aspx like for example:

    VB Code:
    1. <!-- # include file=..\..\..\include1.inc-->

    i tried it by adding an html page to my project then i changed it file extension from htm to inc added html tags and elements and then called the include file in my aspx page but i kept on getting the error message that the file can not be found....

    hope someone can give me an answer i am sure there is a way... thanks in advance

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: include file quick question

    Why don't you want to use the ASCX instead?

  3. #3
    Member
    Join Date
    Oct 2004
    Location
    India
    Posts
    53

    Re: include file quick question

    just make ascx for the header and drag-drop it into every form where u need it as header..
    Yash

Posting Permissions

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



Click Here to Expand Forum to Full Width