Writing javascript code in every page of my site using aspx

Discussion in 'ASP .Net' started by Antonio, Jun 4, 2004.

  1. Antonio

    Antonio Guest

    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

    www.etantonio.it
     
    Antonio, Jun 4, 2004
    #1
    1. Advertising

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

    Regards
    Martin

    "Antonio" <> wrote in message
    news:...
    > 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
    >
    > www.etantonio.it
     
    Martin Marinov, Jun 4, 2004
    #2
    1. Advertising

  3. Antonio

    Steve Drake Guest

    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

    "Antonio" <> wrote in message
    news:...
    > 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
    >
    > www.etantonio.it
     
    Steve Drake, Jun 4, 2004
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jensen bredal
    Replies:
    2
    Views:
    6,181
    Eliyahu Goldin
    Oct 6, 2005
  2. =?Utf-8?B?SXJ3YW5zeWFo?=
    Replies:
    4
    Views:
    2,473
    =?Utf-8?B?SXJ3YW5zeWFo?=
    Oct 30, 2007
  3. Antonio

    Writing javascript code in every page of my site using aspx

    Antonio, Jun 4, 2004, in forum: ASP .Net Building Controls
    Replies:
    3
    Views:
    157
    Mr. Dot Net
    Jul 7, 2004
  4. Antonio
    Replies:
    1
    Views:
    170
    Alvin Bruney [MVP]
    Jun 4, 2004
  5. Unix SA
    Replies:
    1
    Views:
    74
    Roy Smith
    Feb 26, 2014
Loading...

Share This Page