Answers
Oct 01, 2006 - 06:23 PM
for what you want to do I would absolutely recommend to use ASP.NET 2.0 and Masterpages. Have a look here:
http://msdn2.microsoft.com/en-us/library/wtxbf3hh.aspx
If you use ASP.NET 2.0, you add a new item which is your master page. You design and develop the components and code. Then if you want to create a page based on this masterpage, you add new item, select a webpage, check the check box "Select Masterpage" and pick your master page. This inherits everything from the masterpage.
Hope this helps
Cheers
Petr
Oct 02, 2006 - 11:24 AM
If you want to "simulate" normal asp/php-include-files you can do like this:
In the top of your include files write:
<%@ Control Language="VB" EnableViewState="False" %>
and save them with .ascx extension
Then in your main file put Register directives at the top of the page:
<%@ Register TagPrefix="UserControl1" TagName="Top" Src="top.ascx" %>
<%@ Register TagPrefix="UserControl2" TagName="Bottom" Src="top.ascx" %>
and between the tags put
This is definitely not taking advantage of how asp.net is used best, but it might make the transition easier for you to start out like this.
Feb 10, 2007 - 07:21 AM
thanx agian for it
Add New Comment