473,748 Members | 2,615 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Asp.Image gets wipped from source code at run-time

Hi,

I want to insert an ad in my MasterPage. So in the MasterPage, I
have this piece of code: <asp:Image ID="GatesAd" runat="server"
ImageUrl="http://www.gate.com/images/banners/gate_148x400_fi nal.gif"
AlternateText=" www.Gates.com" />
and I even tried with the simple:
<img src="http://www.gate.com/images/banners/gate_148x400_fi nal.gif"
border="0">
But still, nothing is showing up, anyone has clue about why its not
showing up.

I also thought it was the MasterPage playing with the path, therefore I
tried within a simple aspx file and still nothing showing up, What's
weird again, is that its showing right in the design mode.

It sounds freaking if that's impossible, no?

Yannick

Aug 25 '06 #1
3 1590
Where is the image located? In one of the content sections? If so, that is
normal.

As for the particular image, I get a blank when I hit the URL you suggested.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** *************** *************** ****
Think Outside the Box!
*************** *************** *************** ****
"Switch4Mac " <ya************ @gmail.comwrote in message
news:11******** **************@ 75g2000cwc.goog legroups.com...
Hi,

I want to insert an ad in my MasterPage. So in the MasterPage, I
have this piece of code: <asp:Image ID="GatesAd" runat="server"
ImageUrl="http://www.gate.com/images/banners/gate_148x400_fi nal.gif"
AlternateText=" www.Gates.com" />
and I even tried with the simple:
<img src="http://www.gate.com/images/banners/gate_148x400_fi nal.gif"
border="0">
But still, nothing is showing up, anyone has clue about why its not
showing up.

I also thought it was the MasterPage playing with the path, therefore I
tried within a simple aspx file and still nothing showing up, What's
weird again, is that its showing right in the design mode.

It sounds freaking if that's impossible, no?

Yannick

Aug 25 '06 #2
You say that this url
http://www.gate.com/images/banners/g...x400_final.gif is not
working? its working from here. : P

Yannick

Cowboy (Gregory A. Beamer) wrote:
Where is the image located? In one of the content sections? If so, that is
normal.

As for the particular image, I get a blank when I hit the URL you suggested.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** *************** *************** ****
Think Outside the Box!
*************** *************** *************** ****
"Switch4Mac " <ya************ @gmail.comwrote in message
news:11******** **************@ 75g2000cwc.goog legroups.com...
Hi,

I want to insert an ad in my MasterPage. So in the MasterPage, I
have this piece of code: <asp:Image ID="GatesAd" runat="server"
ImageUrl="http://www.gate.com/images/banners/gate_148x400_fi nal.gif"
AlternateText=" www.Gates.com" />
and I even tried with the simple:
<img src="http://www.gate.com/images/banners/gate_148x400_fi nal.gif"
border="0">
But still, nothing is showing up, anyone has clue about why its not
showing up.

I also thought it was the MasterPage playing with the path, therefore I
tried within a simple aspx file and still nothing showing up, What's
weird again, is that its showing right in the design mode.

It sounds freaking if that's impossible, no?

Yannick
Aug 25 '06 #3
It works for me in a master page.

Are you behind a firewall that's caching a bad version of the image? Is IE
set to get a new page every time?

If so, you might want to try adding a question mark to the URL like this:

<asp:Image ID="GatesAd" runat="server"
ImageUrl="http://www.gate.com/images/banners/gate_148x400_fi nal.gif?"
AlternateText=" www.Gate.com" />

Ken
Microsoft MVP [ASP.NET]

"Switch4Mac " <ya************ @gmail.comwrote in message
news:11******** *************@h 48g2000cwc.goog legroups.com...
You say that this url
http://www.gate.com/images/banners/g...x400_final.gif is not
working? its working from here. : P

Yannick

Cowboy (Gregory A. Beamer) wrote:
>Where is the image located? In one of the content sections? If so, that
is
normal.

As for the particular image, I get a blank when I hit the URL you
suggested.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************** *************** *************** *****
Think Outside the Box!
************** *************** *************** *****
"Switch4Mac " <ya************ @gmail.comwrote in message
news:11******* *************** @75g2000cwc.goo glegroups.com.. .
Hi,

I want to insert an ad in my MasterPage. So in the MasterPage, I
have this piece of code: <asp:Image ID="GatesAd" runat="server"
ImageUrl="http://www.gate.com/images/banners/gate_148x400_fi nal.gif"
AlternateText=" www.Gates.com" />
and I even tried with the simple:
<img src="http://www.gate.com/images/banners/gate_148x400_fi nal.gif"
border="0">
But still, nothing is showing up, anyone has clue about why its not
showing up.

I also thought it was the MasterPage playing with the path, therefore I
tried within a simple aspx file and still nothing showing up, What's
weird again, is that its showing right in the design mode.

It sounds freaking if that's impossible, no?

Yannick

Aug 25 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
11762
by: dave | last post by:
Hello there, I am at my wit's end ! I have used the following script succesfully to upload an image to my web space. But what I really want to be able to do is to update an existing record in a table in MySQL with the path & filename to the image. I have successfully uploaded and performed an update query on the database, but the problem I have is I cannot retain the primary key field in a variable which is then used in a SQL update...
4
1962
by: Marc Pelletier | last post by:
Hello, I have a class (TideClass) which creates a bitmap image as one of its functions. I want to create a page which has this image embedded amongst some text. I know that I have to stream the image back from a separate aspx page. I have therefore created a page Day1.aspx which gets the instance of tide from the context handler, calls the DrawChart function and streams it back.
5
1468
by: Neo Geshel | last post by:
I still have a problem displaying images from an access DB using asp.net. This showimage.aspx is for an admin site. I need to pull the correct image from the correct table, hence the two GET variables I need to re-size the image, while keeping the proper proportions, on the fly (before it gets to the browser). The images in the DB need to be full size for the actual web site; thumbnails are only needed in the admin site, hence the two...
0
321
by: mattmerc | last post by:
Hi all, I have an web application where security staff can enter incidents. Part of the form allows the user to describe person(s) involved in an incident. My company just so happens to have a sql database will all employees as well as a picture. I have created a lookup tool so someone can enter in a first or last name and then get a list of matching employees. They can then select which one from the datagrid and all the information I...
15
5362
by: David Lozzi | last post by:
Howdy, I have a function that uploads an image and that works great. I love ..Nets built in upload, so much easier than 3rd party uploaders! Now I am making a public function that will take the path of the uploaded image, and resize it with the provided dimensions. My function is below. The current function is returning an error when run from the upload function: A generic error occurred in GDI+. Not sure what exactly that means. From what...
2
4133
by: Adam Teale | last post by:
hey guys Is there a builtin/standard install method in python for retrieving or finding out an image's dimensions? A quick google found me this: http://www.pythonware.com/library/pil/handbook/introduction.htm but it looks like it is something I will need to install - I'd like to be able to pass my script around to people without them needing any
6
1916
by: William Gill | last post by:
I have found a couple of sites that allow a visitor to upload an image and the site returns either the "average color", or a palette of colors. Several of them use PHP to accomplish this. I have requested the source code, but have not gotten a response (even though one site states "source code available on request"). It is obvious that they read the colors of each pixel and them manipulate that data. I would like to be able to do...
14
16362
by: Steve K. | last post by:
I have a method that I use to get a System.Drawing.Image from a file without keeping a handle on the file open (so I can delete the file). Here is the code: <code> public static Image ImageFromFileReleaseHandle(string filename) { FileStream fs = null; try {
3
3877
by: ccountey | last post by:
Hello, The objective of this script is to show visitors who found my site by clicking on one of our Google Adwords a specific telephone number (in graphic form) for the sake of tracking. Here is the code I have been working on. My issue lies within the document.URL area of the script. I tried this code without declaring the source variable, but the script would redirect me to the document.URL declaration. After running this code...
2
9788
by: ksheerasagar17 | last post by:
Hello All, Scenario: Sending an image through webservice as byte array to an Java webservice. The Problem1: The webservice method image property expects (data type) SByte rather than Byte array. Thus i'm converting a byte array to sbyte array and sending through web service. The converted SByte contains negative numbers wihch are resulting in an error "java.lang.ArrayIndexOutOfBoundsException: -106" Byte => SByte...error...
0
8996
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8832
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9386
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9333
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9254
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8255
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6799
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2217
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.