using <!--#include file="count.aspx" --> inside

Posted on 2006-04-15
Last Modified: 2013-11-18
how can i use this "including" line inside the code behind using ?
<!--#include file="count.aspx" -->
Question by:ramma
    LVL 14

    Expert Comment

    Your question has already been asked in the past, have a look at:

    LVL 5

    Accepted Solution

    Code that is sent to the browser is interpreted. So you can do a:

    Response.Write("<!-- include file='count.aspx'-->")

    OR, if the include is something graphical and needs a particular placement on the page, put a label in that place and set the labels .Text property to the above, something like:

    txtIncludeCode.Text = "<!-- include file='count.aspx'-->"

    Just something to watch out for is to use single quotes around the filename, as the double quotes will be interpreted as closing the string, to make: "<!-- include file=" and then count.aspx, which isn't understood, then "-->".
    LVL 5

    Expert Comment

    Glad I could help.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    There are two main kinds of selectors in CSS: One is base selector like h1, h2, body, table or any existing HTML tags.  For instance, the following rule sets all paragraphs (<p> elements) to red: (CODE) CSS also allows us to define our own custom …
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

    734 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

    19 Experts available now in Live!

    Get 1:1 Help Now