SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru
    Join Date
    Jun 2009
    Posts
    819
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    .net c# -- <include>

    so how do you include a file in .net?

    all examples I see (like this one http://msdn.microsoft.com/en-us/libr...=vs.71%29.aspx)
    is for XML files..

    I need to include an html file, thus:


    <include file="myFile.html" path="/" />

    (and what do you put for path if file to include is in same dir as where <include> tag is?)

    b/c my tag above is not working.. file is not being pulled..

    thank you..

  2. #2
    SitePoint Author silver trophybronze trophy
    wwb_99's Avatar
    Join Date
    May 2003
    Location
    Washington, DC
    Posts
    10,633
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    What you probably want to do is use a masterpage rather than a server-side include. That tag is likely not parsed.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •