943,589 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 5680
  • ASP.NET RSS
Jan 18th, 2008
0

Image inside a panel?

Expand Post »
Hello all,
I am new to asp.net.I have taken up a project called MIS(Management Information System).I have just started the project.The home page consists of a login screen.Now i need to put a picture in my page.I already have one picture for my web page.
In order to put another picture i have put a panel at the top of my page.
The problem is i get the image at design time but when i run it,iam not able to see the panel as well as the picture...

This is the what i have given in the backcolor url property of my panel control (C:/Documents and Settings/techlogin/PRIME/App_Data/logo1.bmp)

This is the same in the source code of the page
ASP.NET Syntax (Toggle Plain Text)
  1. <asp:Panel ID="Panel1" runat="server" Height="100px" Style="z-index: 106; left: 123px;
  2. position: absolute; top: 7px" Width="735px" BackImageUrl="C:/Documents and Settings/techlogin/PRIME/App_Data/logo1.bmp">
  3. </asp:Panel>
The image is stored in App_Data.This is the default project folder.
Help me on how to display the image during runtime...

Thanks and Regards
Bharathi
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
bharathi_n_r is offline Offline
25 posts
since Jan 2008
Jan 18th, 2008
0

Re: Image inside a panel?

try this. u should give path on server. not real path.

BackImageUrl="App_Data/logo1.bmp"

! convert that bmp to jpg to save time on load
Reputation Points: 6
Solved Threads: 19
Posting Whiz in Training
fatihpiristine is offline Offline
283 posts
since Sep 2007
Jan 18th, 2008
0

Re: Image inside a panel?

or if that is the default folder where the file is located as well, you can just have BackImageUrl="logo1.bmp"

Is there any text in the panel at all? Cause if there is not and your image does not load, then you won't see the panel (especially in firefox as it eliminates useless info like malfunctioning HTML that controls convert into). Try setting something inside your panel for testing purposes, like "OMG IT DOESN'T WORK". If it shows, it works! if not, you're text is right on the money.. If it doesn't work, try adding " Visible="True" " to your control. Panels convert to Div's when processed.
Reputation Points: 43
Solved Threads: 68
Veteran Poster
SheSaidImaPregy is offline Offline
1,080 posts
since Sep 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: Dreamweaver testing server
Next Thread in ASP.NET Forum Timeline: I have a dumb question





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC