Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying Graphics

Status
Not open for further replies.

dvannoy

MIS
May 4, 2001
2,765
US
I am building a web app using ASP.NET..

I have a few Gifs on each form..

The bg properties are not fixed. I am using the correct path as in /images/image.gif

why is it that some gifs will show but others will not??

I am new to web site design so forgive me.

I posted this in the ASP.NET forum and got no response

any help would be appreciated

Thanks
 
I'd need to see your code if you say the links are correct- not much else I can think of off the top of my head. Sometimes, when my code just won't behave, I take it outside and make it listen to britney spears music, and when it comes back it's really well behaved. I wonder if it's suffering from post tramatic stress syndrome now..
 
</HEAD>
<body MS_POSITIONING=&quot;GridLayout&quot; background=&quot;images/marble.jpg&quot;>
<form id=&quot;Form1&quot; method=&quot;post&quot; runat=&quot;server&quot;>
<asp:label id=&quot;lblTruckNo&quot; style=&quot;Z-INDEX: 108; LEFT: 110px; POSITION: absolute; TOP: 194px&quot; runat=&quot;server&quot; BackColor=&quot;Transparent&quot; BorderColor=&quot;Transparent&quot; Height=&quot;16px&quot; Width=&quot;70px&quot; Font-Bold=&quot;True&quot; Font-Names=&quot;Verdana&quot; Font-Size=&quot;X-Small&quot;>Truck #</asp:label>
<asp:textbox id=&quot;txtTruckNo&quot; style=&quot;Z-INDEX: 104; LEFT: 110px; POSITION: absolute; TOP: 210px&quot; tabIndex=&quot;1&quot; runat=&quot;server&quot; Height=&quot;21px&quot; Width=&quot;95px&quot; Font-Bold=&quot;True&quot; Font-Names=&quot;Verdana&quot; Font-Size=&quot;X-Small&quot;></asp:textbox>
<asp:label id=&quot;lblCompartment&quot; style=&quot;Z-INDEX: 101; LEFT: 224px; POSITION: absolute; TOP: 193px&quot; runat=&quot;server&quot; BackColor=&quot;Transparent&quot; BorderColor=&quot;Transparent&quot; Height=&quot;16px&quot; Width=&quot;120px&quot; Font-Bold=&quot;True&quot; Font-Names=&quot;Verdana&quot; Font-Size=&quot;X-Small&quot;>Compartment #</asp:label>
<asp:textbox id=&quot;txtCompartment&quot; style=&quot;Z-INDEX: 105; LEFT: 223px; POSITION: absolute; TOP: 209px&quot; tabIndex=&quot;2&quot; runat=&quot;server&quot; Height=&quot;20px&quot; Width=&quot;96px&quot; Font-Bold=&quot;True&quot; Font-Names=&quot;Verdana&quot;></asp:textbox>
<asp:textbox id=&quot;txtDoc&quot; style=&quot;Z-INDEX: 106; LEFT: 353px; POSITION: absolute; TOP: 209px&quot; tabIndex=&quot;3&quot; runat=&quot;server&quot; Height=&quot;20px&quot; Width=&quot;131px&quot; Font-Bold=&quot;True&quot; Font-Names=&quot;Verdana&quot;></asp:textbox>
<asp:label id=&quot;lblDoc&quot; style=&quot;Z-INDEX: 102; LEFT: 355px; POSITION: absolute; TOP: 191px&quot; runat=&quot;server&quot; BackColor=&quot;Transparent&quot; BorderColor=&quot;Transparent&quot; Height=&quot;16px&quot; Width=&quot;78px&quot; Font-Bold=&quot;True&quot; Font-Names=&quot;Verdana&quot; Font-Size=&quot;X-Small&quot;>Manifest #</asp:label>
<asp:label id=&quot;lblResidue&quot; style=&quot;Z-INDEX: 103; LEFT: 496px; POSITION: absolute; TOP: 190px&quot; runat=&quot;server&quot; BackColor=&quot;Transparent&quot; BorderColor=&quot;Transparent&quot; Height=&quot;16px&quot; Width=&quot;101px&quot; Font-Bold=&quot;True&quot; Font-Names=&quot;Verdana&quot; Font-Size=&quot;X-Small&quot;>Residue (Gal)</asp:label>
<asp:textbox id=&quot;txtResidue&quot; style=&quot;Z-INDEX: 107; LEFT: 494px; POSITION: absolute; TOP: 207px&quot; tabIndex=&quot;5&quot; runat=&quot;server&quot; Height=&quot;20px&quot; Width=&quot;99px&quot; Font-Bold=&quot;True&quot; Font-Names=&quot;Verdana&quot;></asp:textbox>
<asp:label id=&quot;lblError&quot; style=&quot;Z-INDEX: 109; LEFT: 193px; POSITION: absolute; TOP: 385px&quot; runat=&quot;server&quot; Font-Size=&quot;X-Small&quot; BackColor=&quot;Transparent&quot; BorderColor=&quot;Transparent&quot; Height=&quot;24px&quot; Width=&quot;381px&quot; Font-Bold=&quot;True&quot; Font-Names=&quot;Verdana&quot; ForeColor=&quot;Red&quot;></asp:label>
<asp:Image id=&quot;Image1&quot; style=&quot;Z-INDEX: 130; LEFT: 190px; POSITION: absolute; TOP: 4px&quot; runat=&quot;server&quot; Width=&quot;381px&quot; Height=&quot;107px&quot; ImageUrl=&quot;images/Romic.gif&quot;></asp:Image>
<asp:Label id=&quot;Label1&quot; style=&quot;Z-INDEX: 132; LEFT: 183px; POSITION: absolute; TOP: 135px&quot; runat=&quot;server&quot; Font-Size=&quot;Small&quot; Font-Names=&quot;Verdana&quot; Font-Bold=&quot;True&quot; Width=&quot;379px&quot; Height=&quot;23px&quot; ForeColor=&quot;Blue&quot;>Enter Tanker Washout Information Below</asp:Label>
<asp:ImageButton id=&quot;btnSave&quot; style=&quot;Z-INDEX: 131; LEFT: 147px; POSITION: absolute; TOP: 433px&quot; tabIndex=&quot;25&quot; runat=&quot;server&quot; Width=&quot;139px&quot; Height=&quot;23px&quot; ImageUrl=&quot;images/SaveChanges.jpg&quot; ToolTip=&quot;Save your changes&quot;></asp:ImageButton>
<asp:ImageButton id=&quot;btnCancel&quot; style=&quot;Z-INDEX: 133; LEFT: 459px; POSITION: absolute; TOP: 434px&quot; runat=&quot;server&quot; Width=&quot;139px&quot; Height=&quot;23px&quot; ImageUrl=&quot;images/Cancel.jpg&quot; tabIndex=&quot;27&quot; ToolTip=&quot;Back to main menu&quot;></asp:ImageButton>
<asp:ImageButton id=&quot;btnClear&quot; style=&quot;Z-INDEX: 134; LEFT: 303px; POSITION: absolute; TOP: 434px&quot; runat=&quot;server&quot; Width=&quot;139px&quot; Height=&quot;23px&quot; ImageUrl=&quot;images/Clear.jpg&quot; tabIndex=&quot;26&quot; ToolTip=&quot;Clear information&quot;></asp:ImageButton>
</form>
</body>
</HTML>


the last three buttons will not show up..
 
Images don't show usually for a very limited number of reasons:
1. check the path: they all look the same so make sure the images are actually in that directory
2. check the names - case sensitivity
3. check the extension. not including the bgimage, you have four images, the last 3 are not showing and also are .jpg, but the one working is a .gif.
4. since you are using absolute positioning make sure there are no layers hiding your images (are you seeing the &quot;missing image&quot; box?)


É
::
 
I was thinking of changing them to gif format..and yes i am seeing the image box will the form loaads but no pic..I created a image button from a jpeg..

Thanks
 
How do i check if there are layers hiding the images..I have another form with jpg's that works fine..

Thanks
 
The higher the number for the Z index, the more visiable an object is- so something with a Z index of 1 will be hidden if something with a Z index of 2 is placed over it.

I don't think it's your Z index- I'd say it's something to do with the image labeling Sometimes, when my code just won't behave, I take it outside and make it listen to britney spears music, and when it comes back it's really well behaved. I wonder if it's suffering from post tramatic stress syndrome now..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top