Writing javascript code in every page of my site using aspx

A

Antonio

Good Morning,
I would want to use aspx to write this javascript code for me in every
page of my site www.etantonio.it how can I do this ???


<script type="text/javascript"><!--
google_ad_client = "pub-XXXXXXXXXXXX";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_channel ="";
google_color_border = ["B4D0DC","A8DDA0","578A24"];
google_color_bg = ["ECF8FF","EBFFED","CCFF99"];
google_color_link = ["0000CC","0000CC","00008B"];
google_color_url = ["008000","008000","00008B"];
google_color_text = ["6F6F6F","6F6F6F","000000"];
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>


Thanks


Ing. Antonio D'Ottavio
(e-mail address removed)
www.etantonio.it
 
M

Martin Marinov

Create a User Web Control And include this control in every page

Regards
Martin
 
S

Steve Drake

Derive you pages from your one base class, add register start-up script to
include this script, or... if your page is built from reusable server
controls and you cannot control the page (eg used in Sharepoint or other
portal / CMS) then you can derive all you server controls from a common
bases class and add this script using register start up script.

Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top