Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > How to add Include file like ASP script was - Plz help

Reply
Thread Tools

How to add Include file like ASP script was - Plz help

 
 
Rizky Kurniawan
Guest
Posts: n/a
 
      11-10-2004
Dear All,

Hi I'm newbie to ASP.NET & C#, I just to know how to figure out Include file
like ASP script was. Here code snipplet I was use

<html>
<head>
<%include {file-included e.g: header.html } %>
</head>
<body>
..... <!-- script for body -->
</body>

<%include {file-included e.g: footer.html } %>
</html>

regard,

rizky

PS: Sorry for my english so bad


 
Reply With Quote
 
 
 
 
Jon J.
Guest
Posts: n/a
 
      11-10-2004
Rizky - User controls (.ascx files) are your best bet.

http://msdn.microsoft.com/library/de...ercontrols.asp

- Jon

"Rizky Kurniawan" wrote:

> Dear All,
>
> Hi I'm newbie to ASP.NET & C#, I just to know how to figure out Include file
> like ASP script was. Here code snipplet I was use
>
> <html>
> <head>
> <%include {file-included e.g: header.html } %>
> </head>
> <body>
> ..... <!-- script for body -->
> </body>
>
> <%include {file-included e.g: footer.html } %>
> </html>
>
> regard,
>
> rizky
>
> PS: Sorry for my english so bad
>
>
>

 
Reply With Quote
 
 
 
 
Martin Kulov
Guest
Posts: n/a
 
      11-10-2004
Hi Rizky,

the include directive works the same way as it was in ASP 3.0.
E.g.

<#include file="">

you can include even asp.net code although it is not good programming style. If you need more complicated and flexible solution though use user controls.

Kind regards,
Martin Kulov
www.codeattest.com
 
Reply With Quote
 
 
 
Reply

Thread Tools

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
/* #include <someyhing.h> */ => include it or do not include it?That is the question .... Andreas Bogenberger C Programming 3 02-22-2008 10:53 AM
plz help me in C/C++ Logic plz mrkanuganti@gmail.com C++ 1 11-24-2006 10:23 AM
Re: plz help!!! plz plz plz plzplzplz help the noob alkzy Microsoft Certification 0 10-31-2004 10:04 PM
Computer Problems... Plz Plz Plz HELP ME..... Nick Computer Support 0 06-04-2004 08:50 PM



Advertisments
 



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