Page 1 of 1
Including an external file
Posted: Mon Aug 30, 2010 4:52 pm
by aaronfrankel
I am trying to include an external file to add content to an about us page. I am used to the typical include script from PHP, but not ASPX and found that the normal <!-- #include script for ASP is causing an error. Can someone tell me how to include an external file withing the AbleCommerce ASPX confines?
Re: Icluding an external file
Posted: Mon Aug 30, 2010 11:58 pm
by mazhar
The classic ASP scripts will not work in ASP.NET. Why don't you just try to open external webpage in some popup control on desired page? Have a look at this thread
viewtopic.php?f=44&t=13026
Re: Icluding an external file
Posted: Thu May 26, 2011 9:41 am
by Raheel
Hello Mazhar,
I also need to include local aspx files on most of the pages and am using version 7.0.6, can you please tell me if it is possible and how?
Thanks.
Re: Icluding an external file
Posted: Fri May 27, 2011 5:27 am
by jmestep
Re: Icluding an external file
Posted: Sun May 29, 2011 5:13 pm
by cierra
Sorry, that article wasn't much help. We are trying to do our navigation bar in an include file so we don't have to stick all of our code in the header. If someone could please explain in layman's terms how to do this, we would appreciate it very much!
Re: Icluding an external file
Posted: Mon May 30, 2011 4:28 am
by Raheel
Hello!
Waiting for assistance.
Re: Icluding an external file
Posted: Thu Jul 28, 2011 11:56 am
by plugables
cierra wrote:Sorry, that article wasn't much help. We are trying to do our navigation bar in an include file so we don't have to stick all of our code in the header. If someone could please explain in layman's terms how to do this, we would appreciate it very much!
Not sure how you are trying to do this. In ASP.NET world you don't use include files as you used to do in classic ASP. You can use an ASP.NET control. An ASP.NET control is fully contained in a separate file. It can be referred on any page you want. This will serve you the same way as if you included a file.