Web Forms :: Google Adsense Not Showing In Some Page
Feb 19, 2011
Recently, google has approved my adsense request and i have integrated adsense code to my site. My website is fully developed in asp.net 4.0. On some pages adsense is not visible. I have a masterpage in my site to display some adds on entire site. The same add in visible on some pages and the same add is not visible on some other pages. For example,
www.domain.com [right side add is visible left side add is not visible]
www.domain.com/tips.aspx [both sides visible]
www.domain.com/about.aspx [right side add is visible left side add is not visible]
www.domain.com/nst/default.aspx [both sides visible]
www.domain.com/apss/default.aspx [right side add is visible left side add is not visible]
In above all case, right side is sometimes not visible. I have checked to put <div> on upper most layer but no luck. Even I have placed the same left side add code to right side but no luck here too.
I am trying to put google adsense on my default.aspx that has a masterpage. I am not sure I am doing it correctly. Is there a particular place I should be pasting their java script ?
I have been experiencing some issues loading some web pages from my development machine. They were painfully slow. I disregarded this until I tried running my own site and found that the culprit was the show.ad.js file provided by google adsense.
Using firebug I see that the page hangs on the loading of this file and then aborts after about 5-10seconds. If I am calling multiple database records to a page it will load one, hang, abort and then load another.
Trouble shooting I have done and things I can rule out are:
My router or any other external peripheral. If I go to any other PC in the house the page loads fine and very quickly. I have tried cabled and wireless. The problem appears to be something unique with my machine. It is not just my website, it is all websites with google adsense. I have turned off my firewall and shutdown anti virus. No change. It is from all browsers on this PC. I have tried chrome, safari, firefox and ie. No change. I do not have any ad blocker software installed that I know about.
I know there could be a million reasons why I could be having this problem but I thought someone out there may have had a similar experience. Failing that, is there any way I can trace the problem as I have no idea where to start.
i have one asp.net application which has menu bar and sub menu are Horizontal. in my IE browser itz working fine.. but in google chrome itz not showing the sub menu.
I have used Google Plus one in my web pages in my website. I have used this in a User Control Page and called this .ascx page into my all .aspx page. I have used the code like below:
<g:plusone size="medium" width="120"></g:plusone> <script type="text/javascript"> (function () { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = 'https://apis.google.com/js/plusone.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); })(); </script>
It is working fine in my pages except 2 pages in which it is not showing. When i see the view source of the page then i find the above javascript and HTML code. I have called 6 methods on the page load of these 2 pages. what is the reason of Google Plus one not showing on my this 2 pages. what i will have to do to show Google Plus one on my this 2 pages. I have called this User Control page on my other pages.
I am having an issue with images not showing in Chrome or FireFox. In chrome i get this message in the Console "Not allowed to load local resource.". The images appear fine and correct in IE11 & MS Edge. I'm assuming this is some king of security problem I need to address, but am not at all sure what.
I was wondering, if I create a page e.g. index.aspx and I create it's contents based on a variable, would an AdSense block always show the same ad? Meaning is there a way to give it a dynamic content and having the ad addept to the content without creating a page for each content.For example I have a site with 3 links: pears, apples and lemons. I have a database which has the content of each page. I have a dynamic page index.aspx which modifies it's content based on the clicked link (the link always returns to index.aspx). If I want an ad to match my content, should I then do it differently? Like creating pages for each link and adding the content to each page dynamicly based on the link or something?
I'm trying to put Google's BarChart and PieChart both the client side version, and i'm experiencing some problems with the labels over the pie and the labels on the left of the vertical axis (of the bar chart).
I checked the code a lot of times and it seems to be like that you can see in the examples.I've tried the same page on Firefox and Chrome and it shows the labels without problems.If i try the examples on IE8 the labels are shown but not in my page.Sincerely I've not any idea where to start to fix this thing.
I have a question. I will take the example exactly as it looks like. Below I have an .aspx page and a .cs page. In the .aspx page There is alot of text written.The .cs file as seen will in the Page_Load event redirect to another .aspx page which holds the real design to show for a user.(I only create these below .aspx page for google to find and index. These are content like Thread and posts but when someone enter this page, it will redirect to the real desinged page and now know what text to read in there.)
My question is if this .aspx page below can be crawled/red/index by search engines like google. (To mention is that I do use a sitemap).What worries me with this question is that I immediately redirect to another .aspx page.Does this prevent google from having the ability to read the below .aspx page and index the content? How does this work?
I'm trying to pull different product meta tags from a database onto a page. The problem I have is my DefaultValue="59" is the only product to be displayed if I change this value to another product id it displays just that products meta tags.
I have developed a website in asp.net,c#. Its pages are not scrolling through arrow keys (Up/Down) in google chrome. They are working well in IE and firefix mozilla. I also have no problem in my admin control panel. Admin control pages are scrolling through arrow keys in google chrome, IE and firefox mozilla. What i should do to scroll my website pages through arrows keys in google chrome.
In my web application I have a separate folder for Images and MasterPages and I am using forms authentication. Thus if I will not allow anonymous access for Images folder the login page will not be able to show any image.
guide me if this is what we should be doing or is there any other way to handle the scenario. Also, let me know is there any drawback of this technique.
what i want to do is to execute a url ("To send a text message to client") on client registration but without showing that url page, in short executing url without displaying any page or url to the client.
I would like to show the results from the search in another page. How do I show the results of the search in another page when the user press the button?
I developped a light WinForm Control that run like an ActiveX in a Web Page. No problem yet.However, when i want to access System.IO I got a Security Exception. It seems that I have to sign my assembly, so that's what I did. When my assembly is signed, my Web Browser can't show the Winform. I set IE to download any ActiveX in the Security tab ... Nothing happens. Uncheck "Sign Assembly" ... works fine ...
In the ASP.NET application that I'm working on, the home/landing page takes around 20-25 seconds to load.
And, that is expectable by everyone, as the application loads huge data, calls multiple services before the first page can be loaded.
I am looking to show some kind of HTML UI to the user while the page loads up.
I tried multiple things but the earliest that something shows up on the page is through Response.Write() in the Page Init and hide that HTML content in jQuery's $(document).ready(). In this case also, something shows up after 60% or the wait time has passed.
I want something to show up as soon as the authentication is done (form the login page) and before the home page shows up. Something similar to what shows up on Orbitz.com or [URL], some kind of UI between clicking search and the actual search result is shown.
If it was ASP.NET MVC, I can think of good solutions as you have complete control on the rendering but we are using ASP.NET 3.5 with server side Ajax controls.
Here's what currently takes place before the home page:
Login page submit actions - Authenticate, Load SSO Data, Redirect to home Page.
I am using User controls in my web page. I have validation controls in my user control and the validation summary control is placed in the master page. Problem is I am not getting the errors displayed when I am running my application.
Hpresently i am sending email directly giving my account in the code file.It is working . But, when i am using textbox in web page as To and FROM ,SUBJECT. It is not working as well as not showing an error .
My code
protected void Button1_Click(object sender, EventArgs e) { MailMessage m = new MailMessage(); SmtpClient sc = new SmtpClient(); try { m.From = new MailAddress("from"); m.To .Add (new MailAddress ("to)); m.CC .Add (new MailAddress ("somebody")); m.Subject = "subject"; m.IsBodyHtml = true; m.Body = " This is a test mail "; sc.Host = "smtp.gmail.com"; sc.Port = 587; sc.Credentials =new System .Net .NetworkCredential ("from.gmail"); sc.EnableSsl = true; sc.Send(m); } catch (Exception ex) { } } }