Common part

  • Thread starter Thread starter Christian Ista
  • Start date Start date
C

Christian Ista

Hello,

To each pages, I have a common part (a graphic part). Is it possible to put
the code (HTML) in a file and insert it in each pages or I have to
copy/paste the code in each pages ?

Regards,

Christian,
 
Hi,

You can put all such common UI in an user control (.ascx) and include it in
all the pages.

HTH.

Hello,

To each pages, I have a common part (a graphic part). Is it possible to put
the code (HTML) in a file and insert it in each pages or I have to
copy/paste the code in each pages ?

Regards,

Christian,
 
Hi,

You can put your common part as a ASP.NET custom control page (.ascx) and
refer this custom control in all your asp.net pages.

eg)If you put your graphics in header.ascx file.

you refer it in your page1.aspx as below
<%@ Register TagPrefix="uc1" TagName="Header" Src="Header.ascx" %>


Regards,
R.Balaji
 
Back
Top