PDA

Click to See Complete Forum and Search --> : include file quick question


sonvel
Mar 24th, 2005, 05:40 AM
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:

<!-- # 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

mendhak
Mar 24th, 2005, 06:05 AM
Why don't you want to use the ASCX instead?

yashsays
Mar 24th, 2005, 07:05 AM
just make ascx for the header and drag-drop it into every form where u need it as header..