Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 5th, 2007, 07:18 AM
Authorized User
 
Join Date: Aug 2007
Location: , , .
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default How can I run or not run Google AD in my ASP.NET w

The following code is google AD, I have added it to my website http://www.hothelpdesk.com

   <script type="text/javascript"><!--
google_ad_client = "pub-5823168326939016";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "336699";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_url = "008000";
google_color_text = "000000";
//--></script>
        <script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>



I hope I can control when it run or not run in my webpage, how can I do ? thanks!

        if (IsFreeVersion== True)
        {
           //Run Google AD and Google AD will display in my webpage
        }
        else
        {
           //Don't run Google AD and Google AD will not display in my webpage
        }


http://www.hothelpdesk.com/ - Web Based Helpdesk, Customer Service, Customer Support Software
__________________
Online Calculator - Online platform to create program with C# 4.0 and share with other people




Similar Threads
Thread Thread Starter Forum Replies Last Post
Run button problem in IE 7.0 and asp.net jits.santhosh General .NET 1 September 9th, 2008 12:55 PM
How to run ASP.Net with Oracle 9i ramk_1978 ASP.NET 1.0 and 1.1 Professional 1 September 7th, 2006 08:07 PM
Run .sql file through ASP.NET+C# vinodkalpaka C# 2 August 16th, 2006 06:13 PM
Run .sql file through ASP.NET+C# vinodkalpaka ADO.NET 0 February 12th, 2005 07:44 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.