• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 329
  • Last Modified:

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

hi
how can i use this "including" line inside the asp.net code behind using vb.net ?
<!--#include file="count.aspx" -->
Thanks
0
ramma
Asked:
ramma
  • 2
1 Solution
 
existenz2Commented:
Your question has already been asked in the past, have a look at: http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/Q_20840982.html

0
 
GENTPCommented:
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 "-->".
0
 
GENTPCommented:
Glad I could help.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now