Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 4.5 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-31180-6
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5 : in C# and VB 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 March 23rd, 2013, 04:23 PM
Friend of Wrox
Points: 1,905, Level: 17
Points: 1,905, Level: 17 Points: 1,905, Level: 17 Points: 1,905, Level: 17
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2011
Posts: 411
Thanks: 13
Thanked 7 Times in 7 Posts
Default The banner problem

I am working through the example on page 288-9 and I can't seem to make the banner render in design view. I have tried doing the exercise three times now, and for some strange reason I keep missing something. Here is the HTML markup
Code:
 Control Language="C#" AutoEventWireup="true" CodeFile="Banner.ascx.cs" Inherits="Controls_Banner" %>
<asp:Panel ID="VerticalPanel" runat="server">
    <a href="http://p2p.wrox.com"
    target="_blank" <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/Banner120x240.gif" />
        </a>
</asp:Panel>
Does anyone know what is happening here?

Last edited by vbboyd; March 23rd, 2013 at 04:31 PM..
 
Old March 23rd, 2013, 04:32 PM
Friend of Wrox
Points: 1,905, Level: 17
Points: 1,905, Level: 17 Points: 1,905, Level: 17 Points: 1,905, Level: 17
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2011
Posts: 411
Thanks: 13
Thanked 7 Times in 7 Posts
Default I'll try it in photoshop

Quote:
Originally Posted by vbboyd View Post
I am working through the example on page 288-9 and I can't seem to make the banner render in design view. I have tried doing the exercise three times now, and for some strange reason I keep missing something. Here is the HTML markup
Code:
 Control Language="C#" AutoEventWireup="true" CodeFile="Banner.ascx.cs" Inherits="Controls_Banner" %>
<asp:Panel ID="VerticalPanel" runat="server">
    <a href="http://p2p.wrox.com"
    target="_blank" <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/Banner120x240.gif" />
        </a>
</asp:Panel>
Does anyone know what is happening here?

I think that perhaps maybe the .gif file that I downloaded from the internet has gotten corrupted somehow, I will try to repair it using photshop or I will try to put it in a different format via photoshop like maybe a .png or .jpeg file.
 
Old March 23rd, 2013, 04:38 PM
Friend of Wrox
Points: 1,905, Level: 17
Points: 1,905, Level: 17 Points: 1,905, Level: 17 Points: 1,905, Level: 17
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2011
Posts: 411
Thanks: 13
Thanked 7 Times in 7 Posts
Default

Quote:
Originally Posted by vbboyd View Post
I think that perhaps maybe the .gif file that I downloaded from the internet has gotten corrupted somehow, I will try to repair it using photshop or I will try to put it in a different format via photoshop like maybe a .png or .jpeg file.
Okay so I tried to repair and optimize the .gif banner files in photoshop and that didn't work. So I then tried to download those .gif files again from wrox website and that still didn't fix the problem. I guess the next step is to go reset the wireless router because some of the downloads when it comes to images maybe getting corrupted by the wireless router configuration.
 
Old March 23rd, 2013, 04:44 PM
Friend of Wrox
Points: 1,905, Level: 17
Points: 1,905, Level: 17 Points: 1,905, Level: 17 Points: 1,905, Level: 17
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2011
Posts: 411
Thanks: 13
Thanked 7 Times in 7 Posts
Default

Quote:
Originally Posted by vbboyd View Post
Okay so I tried to repair and optimize the .gif banner files in photoshop and that didn't work. So I then tried to download those .gif files again from wrox website and that still didn't fix the problem. I guess the next step is to go reset the wireless router because some of the downloads when it comes to images maybe getting corrupted by the wireless router configuration.
Okay so I reset the wireless router and I then downloaded the .gif banner resource files from the wrox website and I am still having the same problem. I don't what I is going wrong. The only thing I can figure out is that maybe the files on wrox server might be corrupted. I just don't know. I give up for now. Maybe someone can find me an answer here.
 
Old March 26th, 2013, 11:49 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Let me guess: you are using Firefox and you're using a Banner blocking plugin. The book warns for this somewhere; the banner images look like banners and thus the plugin disables them. Disable the plugin (or other banner blocking software you may have running) and it should work.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
vbboyd (March 26th, 2013)
 
Old March 26th, 2013, 12:39 PM
Friend of Wrox
Points: 1,905, Level: 17
Points: 1,905, Level: 17 Points: 1,905, Level: 17 Points: 1,905, Level: 17
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2011
Posts: 411
Thanks: 13
Thanked 7 Times in 7 Posts
Default Yes you are right.

Quote:
Originally Posted by Imar View Post
Let me guess: you are using Firefox and you're using a Banner blocking plugin. The book warns for this somewhere; the banner images look like banners and thus the plugin disables them. Disable the plugin (or other banner blocking software you may have running) and it should work.

Cheers,

Imar
Yes, you are right. I run the application with Safari and it works just fine. Why didn't I think of that? Something that simple, and I was trying everything else in the world more complicated while going on wild goose chase trying to figure out this problem.




Similar Threads
Thread Thread Starter Forum Replies Last Post
Ch8 Problem in Banner.ascx.cs ken evans BOOK: Beginning ASP.NET 4 : in C# and VB 5 March 29th, 2011 09:34 PM
Banner missing from Chapter 3 paleboat BOOK: Professional Joomla! ISBN: 978-0-470-13394-1 0 April 14th, 2009 04:20 PM
Banner display in asp SKhna Classic ASP Basics 1 May 5th, 2008 06:38 PM
intresting banner? sirup_segar Dreamweaver (all versions) 1 May 30th, 2007 04:25 AM
Adding banner to this code einarhansen Classic ASP Basics 0 November 29th, 2003 08:46 AM





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