Go Back   CodingForums.com > :: Server side development > ASP.NET

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-06-2011, 01:49 PM   PM User | #1
stevehungry
New Coder

 
Join Date: Mar 2011
Location: England
Posts: 28
Thanks: 0
Thanked 5 Times in 5 Posts
stevehungry is an unknown quantity at this point
Thumbs down masterpage with images problem.

Hello cf, im new to this website and also new to ASP.net.

i have a masterpage, and iv linked some other pages to it and have it successfully displaying "welcome to the site from masterpage" just so i know all was working fine, i tried to add my banner image, when i debug the image would appear then dissapear or sometimes not appear at all. the image is in the right directory. and its appearing with the design view of visual studio so its reaching the file but for some reason its not showing. i just dragged and dropped.
iv tried:
putting it into a table.
using the following:
Code:
<asp:Image ID="Image1" runat="server" AlternateText="banner" ImageUrl="images/banner.jpg"/>

<img src = "images/banner.jpg" alt = "alt"/>

<p><img alt="" src="images/banner.jpg" style="width: 800px; height: 150px" /></p>
the weird thing is when i try a different image it will add it just fine and never dissapear. my banner is 800x150 and 115kb. a differant image that works is 321x489 and is 41.4kb. im completely out of ideas, im dragging and dropping so file path shouldnt be the problem. help would be great
stevehungry is offline   Reply With Quote
Old 03-14-2011, 11:55 AM   PM User | #2
nirajmchauhan
New Coder

 
Join Date: Sep 2010
Location: India
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
nirajmchauhan is an unknown quantity at this point
Why don't you try with another image of size 800x150, just try and see, whether it works or not
nirajmchauhan is offline   Reply With Quote
Old 03-16-2011, 05:58 PM   PM User | #3
stevehungry
New Coder

 
Join Date: Mar 2011
Location: England
Posts: 28
Thanks: 0
Thanked 5 Times in 5 Posts
stevehungry is an unknown quantity at this point
i fixed the problem..kinda, turns out i wasnt doing anything wrong. i didnt test in a different browser which was probably really stupid of me... the problem was my google chrome configuration, im going to guess it was a conflicting extension but who cares, it works now
stevehungry is offline   Reply With Quote
Reply

Bookmarks

Tags
masterpage image problem

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:13 AM.


Advertisement
Log in to turn off these ads.