Are you just trying to do an include file? If, for instance, you wanted to put navigation in one file and use it on all your files you can do that with a user control.
Here is a real basic example of a user contol. I have two files. One called default.aspx and the other uc_include.ascx (user Contols have an ascx extension).
The default file would look like this:
Code:
<%@ Page Language="VB" %>
<%@ Register TagPrefix="myControl" TagName="aControl" Src="uc_include.ascx" %>
<html>
<head>
<title>Sample Control</title>
</head>
<body>
<myControl:aControl id="aControl" runat="server"></myControl:aControl>
</body>
</html>
The user contol looks like this:
Code:
<%@ Control Language="VB" %>
<p>
This is just a simple version of a user control (.aspx).
</p>
At run time the page's source will combine the two (or more) files to look like this:
Code:
<html>
<head>
<title>Sample Control</title>
</head>
<body>
<p>
This is just a simple version of a user control (.aspx).
</p>
</body>
</html>
I hope that is somewhat helpful to you.