Does 2.0 renders inc files

Posted on 2012-08-21
Last Modified: 2012-08-23

We have given our website to design to some agency. They have given full html, images, javascript, jquery, css etc

They have given file with extensions .aspx

Now we need to do the dynamic stuff ourself for example form submission, inserting values into database, displaying news dynamically etc

What I am seeing in there aspx file provided that it has many 'inc' includes for example

<!--#include virtual="/inc/en/"-->
<!--#include virtual="/inc/en/"-->

I think this all is asp code inside aspx file extension.

We need to convert complete website in 2.0 using C#. That includes creating Master pages etc

Please confirm if my understanding is correct that inside aspx file they have used classic asp code.

ASP.net2.0 do not render inc files

As visual studio 2005 also not rendering .inc files, no css and js is found in Visual Studio 2005, which is written in .inc files

Please correct my understanding

Question by:tia_kamakshi
    LVL 11

    Accepted Solution

    Indeed include virtual was used in classic asp and now is obsolete as .NET uses master pages for this.
    Regarding the .inc rendering, I've tried and by default .inc files are rendered by .NET and even the C# code is executed inside it.
    But this can be changed by IIS setup, you can modify from there how you want 'include virtual' to be handled and also how to render .inc file (deny, use .NET or smth else).

    In conclusion, theoretically your code should work like it is but you need to confirm that your server setup allows it, but the recommendation is to convert to using master pages.

    Author Comment

    Thanks for your reply.

    Yes, I know that we can do IIS settings to run inc files.

    But how about at the time of development. We donot have IIS on our local machine, so, its hard to debug.

    Indeed I will convert all inc files to user control or master page. But is there anyway to run inc files in Visual Studio 2005

    Thanks again
    LVL 11

    Expert Comment

    Rename them from .inc to .aspx (or .html or .asp - test to see which one is better).
    As far as I've checked the include is still working and VS will render the pages for you.
    However there is no tool to render you the included file in your main page, you have to open each included file to see how it looks.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
    ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now