Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 756139
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T15:12:39+00:00 2026-05-14T15:12:39+00:00

I’m making a very simple ad button system using ASP.NET 2.0 The advertisment is

  • 0

I’m making a very simple ad button system using ASP.NET 2.0

The advertisment is a 150x150px square that is displayed on **.
(Scroll down a little and you’ll see the bright green “Angry Octopus” on the right side of the screen.)

Now, I am not the administrator of **. Instead, I am the administrator of angryoctopus.net
Therefore, I don’t have the ability to change the ad display code on a whim. So I gave ** this snippet of code to display our ad nicely, while still allowing me to customize the back-end code on my side of things:

<iframe src="http://www.angryoctopus.net/Content/Ad/150x150.aspx"
frameborder="0" width="150" height="150" scrolling="no"
style="padding: 0; margin: 0;"></iframe>

You’ll find this snippet in the page source to **

On my side, the code looks like this:

<%--150x150.aspx--%>
<asp:HyperLink runat="server" NavigateUrl="http://www.angryoctopus.net/" Target="_top">
    <asp:Panel ID="pnlMain" runat="server" BackColor="#D1E231"
        style="padding: 0; margin: 0" Width="150" Height="150">
        <asp:Image runat="server" ImageUrl="http://www.angryoctopus.net/Content/Ad/150x150.png"
            BorderStyle="None" style="padding: 0; margin: 0" />
    </asp:Panel>
</asp:HyperLink>

… and there’s some insignificant back-end C# code for hit-counting.

This looks all well and good from the code standpoint, as far as I can tell. Everything works in Firefox and Chrome. Also, everything appears to work in IE8 in all of my tests. I haven’t tested IE7.

But when you view ** in IE(8) the hyperlink doesn’t do anything, and the cursor doesn’t indicate that the hyperlink is even there. Although you can see the target URL in the status bar.

I’ve considered the fact that ** uses XHTML 1.0 Strict could be causing problems, but that would probably affect Firefox and Chrome right? (My aspx pages use XHTML 1.0 Transitional)

My only other theory is that some random CSS class could be applying a weird attribute to my iframe, but again I would expect that to affect Firefox and Chrome.

Is this a security issue with IE? Does anyone know what part of **’s website could be blocking the hyperlink in IE? And how can I get around this without having to hard code anything on **’s website? Is there an alternative to iframe that would do the same job without requiring complicated scripting?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T15:12:40+00:00Added an answer on May 14, 2026 at 3:12 pm

    The first thing to do would be to ensure your page is valid XHTML. Current there are 1029 validation errors. If your mark-up isn’t valid, then you can’t expect browsers to consistently interpret and render your content.

    One major thing to look at is the fact your site declares a doctype of XHTML 1.0 Strict and Iframes are not valid in this doctype. You probably want to use XHTML Transitional, which allows it.

    Also, your own HTML with your add in is also broken. You have a closing DIV in the wrong place. Your mark-up looks like this:

      <a href="http://www.angryoctopus.net/" target="_top">
      <div id="ctl00_cntBody_pnlMain" style="background-color:#D1E231;height:150px;width:150px;padding: 0; margin: 0">
    
       <img src="http://www.angryoctopus.net/Content/Ad/150x150.png" style="border-style:None;border-width:0px;padding: 0; margin: 0" />
    
    </div></a>
    

    You should move the closing DIV outside the closing A tag.

    As I said, ensure you validate your HTML since these errors will be highlighted. Valid mark-up is not just a nicety, it is essential to ensuring your content renders correctly across multiple browsers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
Seemingly simple, but I cannot find anything relevant on the web. What is the
I have just tried to save a simple *.rtf file with some websites and
I have a French site that I want to parse, but am running into
Does anyone know how can I replace this 2 symbol below from the string
this is what i have right now Drawing an RSS feed into the php,
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I want to count how many characters a certain string has in PHP, but
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.