Zpixel
09-07-2009, 02:10 PM
I'm making an ASPNET website using c#. it has more than 10 pages for example. i want to put the header part of the HTML code into a separate page, and then to include that page into all the other pages. the header page may need to have some lines of C# or ASP code. How can i do that?
in PHP everything is easy. you simply include('filename') everything into everything.
here in ASPNET,
<!--#include file=layoutheader.aspx --> gives error,
Server.Execute("addProduct.aspx"); causes error.
what should i do?
in PHP everything is easy. you simply include('filename') everything into everything.
here in ASPNET,
<!--#include file=layoutheader.aspx --> gives error,
Server.Execute("addProduct.aspx"); causes error.
what should i do?