Web Design and Development Forums

Including a File

This is a discussion on "Including a File" within the ASP.NET Forum section. This forum, and the thread "Including a File are both part of the Program Your Website category.

Old Jan 21st, 2008, 17:30   #1 (permalink)
 
Join Date: Aug 2003
Location: Castle Rock, CO
Age: 36
Posts: 177
Including a File

I am working on a new website - mainly a layout. We will probably be using .NET for it (once we get through some of the legal stuff). I am wanting to do an include file. Looking through some of the previous posts, I see them talking about the web.config etc but I am not certain if that is what I really need to be messing with.

For example, in ASP you use something like
Code: Select all
<!--#INCLUDE FILE="includes/header.html" -->
so is there something comparable in .NET? Perhaps I should just do the layout in ASP if there is not something that comparable and then let the programmer do handle it
__________________
Corey
Accept Credit Cards | Promo | Toll Free Numbers
Corey Bryant is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jan 21st, 2008, 21:42   #2 (permalink)
Elite Veteran
 
Daniel's Avatar
 
Join Date: Sep 2006
Location: The Kingdom of Rabbits
Age: 21
Posts: 2,381
Blog Entries: 12
Send a message via MSN to Daniel
Re: Including a File

I'd use asp or php.

What is .net code anyway?
__________________
FMFA Manager / World Footy Forums
Daniel is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jan 21st, 2008, 21:43   #3 (permalink)
Administrator
 
alexgeek's Avatar
 
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
Blog Entries: 9
Send a message via MSN to alexgeek
Re: Including a File

It's ASP extended. You can code in C#, VB etc.
__________________
Languages: PHP, mySQL (queries), C#, (X)html, CSS, JS.


alexgeek is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jan 21st, 2008, 21:45   #4 (permalink)
Elite Veteran
 
Daniel's Avatar
 
Join Date: Sep 2006
Location: The Kingdom of Rabbits
Age: 21
Posts: 2,381
Blog Entries: 12
Send a message via MSN to Daniel
Re: Including a File

I code in VB all the time lol.
__________________
FMFA Manager / World Footy Forums
Daniel is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jan 21st, 2008, 21:47   #5 (permalink)
Administrator
 
alexgeek's Avatar
 
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
Blog Entries: 9
Send a message via MSN to alexgeek
Re: Including a File

In response to the original question.
You can use the method you said or the .NET way:
Code: Select all
     <%		   
          Response.WriteFile ("Yourfile.inc")
        %>
__________________
Languages: PHP, mySQL (queries), C#, (X)html, CSS, JS.


alexgeek is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jan 21st, 2008, 22:30   #6 (permalink)
 
Join Date: Aug 2003
Location: Castle Rock, CO
Age: 36
Posts: 177
Re: Including a File

Thanks!
Code: Select all
     <%		   
          Response.WriteFile ("Yourfile.inc")
        %>
did the trick! That will help me on a few other pages actually as well that I had been needing to include a few files in but needed the .aspx file extension.

Yeah, I know - I am supposed to be a "Visual Developer - ASP/ASP.NET" - but still think I missed the boat when it comes to .NET
__________________
Corey
Accept Credit Cards | Promo | Toll Free Numbers
Corey Bryant is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Jan 21st, 2008, 22:42   #7 (permalink)
Administrator
 
alexgeek's Avatar
 
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
Blog Entries: 9
Send a message via MSN to alexgeek
Re: Including a File

Yeah, I'm not too fussed on it either.
By the way, source was here.
__________________
Languages: PHP, mySQL (queries), C#, (X)html, CSS, JS.


alexgeek is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Mar 11th, 2008, 20:08   #8 (permalink)
Junior Member
 
Join Date: Feb 2008
Location: Paris
Age: 31
Posts: 18
Re: Including a File

Well done.
magicben is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Mar 12th, 2008, 03:27   #9 (permalink)
Section Manager - Design Forums
 
frinkky's Avatar
 
Join Date: Oct 2006
Location: Southampton
Posts: 214
Blog Entries: 2
Send a message via MSN to frinkky Send a message via Skype™ to frinkky
Re: Including a File

won't mean squat if your host doesn't support server side includes. Won't be the first time I've seen great plans be shot down in smoke.
__________________
Jon Warner
Section Manager (Design)

frinkky is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
including inside a function CloudedVision PHP Forum 2 Feb 11th, 2008 00:13
Webpage calender including clock satimis HTML Forum 0 Dec 28th, 2007 05:25
3 CSS Issues, including a float problem in IE6 TheoUK CSS Forum 1 Jul 3rd, 2007 23:56
Including php in html djme PHP Forum 8 Jan 28th, 2006 12:25



Latest Updates

All Points SEO Security Advisory - CHECK YOUR SITE NOW!

Creative Coding :: February 2008

Webforumz is sponsored by: WESH UK Web Hosting
All times are GMT. The time now is 20:51.

Sleep Study Scoring :: Free Bet :: Website Templates :: Online Betting :: Bookmakers :: Funny Quotes :: Internet Recruitment Software :: Microsoft CRM Experts :: Online Casino :: Decorated Christmas Trees :: Midwife Forums :: Football Betting :: Ecommerce Software :: Web Hosting :: Football Stats :: Dry Cleaning Collection :: xtreme wales - extreme clothing :: Apuestas :: Sharepoint Consultants :: Website Optimisation :: Office Clearance London :: Sharepoint Experts :: Sports Betting :: Casino :: Website Templates :: Web Design Development India :: Online Gambling

Powered by: vBulletin Version 3.7, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
© 2003-2008 Webforumz.com : All Rights Reserved
Search Engine Friendly URLs by vBSEO 3.2.0 RC6


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59