|
 |
aspx thread: Scriptlets
Message #1 by jeremy.caudle@u... on Wed, 11 Oct 2000 11:21:49 +0100
|
|
I have looked through the p2p web site for an answer and I could find it -
so I have looked honest.
When developing pages using ASP we get the designer to put the page
together and then chop it up into include files - usually called top,
middle and bottom to create the page. We don't use frames.
The best to learn is to do so I created a page and then chopped it up into
three files. I registered the files at the top of my default page and then
tried to include them using the syntax from the book - which I don't have
to hand. It didn't work, I got an error stating the compiler couldn'f find
the end of the script.
So my question is this:
What do I need to put in my scriplets (that have only HTML in them) to
denote the beginning and the end?
Jez.
Message #2 by =?us-ascii?Q?Fredrik_Normen?= <fredrik.normen@e...> on Wed, 11 Oct 2000 13:53:30 +0200
|
|
Hi,
You can use the <%@ Register %> to inlude other files.
Here is a example.
<%@ Register TagPrefix="MyPage" TagName="Header" Src="Header.aspx" %>
<%@ Register TagPrefix="MyPage" TagName="Bottom" Src="Bottom.aspx" %>
<html>
<MyPage:Header runat="server"/>
........
<MyPage:Bottom runat="server"/>
</html>
I hope this will help you..
/Fredrik Normen
-----Original Message-----
From: jeremy.caudle@u... [mailto:jeremy.caudle@u...]
Sent: den 11 oktober 2000 12:22
To: ASP+
Subject: [aspx] Scriptlets
I have looked through the p2p web site for an answer and I could find it -
so I have looked honest.
When developing pages using ASP we get the designer to put the page
together and then chop it up into include files - usually called top,
middle and bottom to create the page. We don't use frames.
The best to learn is to do so I created a page and then chopped it up into
three files. I registered the files at the top of my default page and then
tried to include them using the syntax from the book - which I don't have
to hand. It didn't work, I got an error stating the compiler couldn'f find
the end of the script.
So my question is this:
What do I need to put in my scriplets (that have only HTML in them) to
denote the beginning and the end?
Jez.
|
|
 |