how to display picture to asp .net, default.aspx?

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Feb 2007
Posts: 53
Reputation: Hellodear is an unknown quantity at this point 
Solved Threads: 0
Hellodear's Avatar
Hellodear Hellodear is offline Offline
Junior Poster in Training

how to display picture to asp .net, default.aspx?

 
0
  #1
Aug 6th, 2007
guys,
i've developed an Asp.net prject..i don't know how to retreive picture to my default.aspx page.

<asp:ImageFieldDataAlternateTextField="ID"DataAlternateTextFormatString="image:{0}"
DataImageUrlField="id" DataImageUrlFormatString="{0}">



The above code doesn't working.. what should i do. any requirement of additional coding? actual picture is placed at the project folder.

You information is kindly solicited.
regards...Anish
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 812
Reputation: arjunsasidharan is on a distinguished road 
Solved Threads: 13
arjunsasidharan's Avatar
arjunsasidharan arjunsasidharan is offline Offline
Practically a Posting Shark

Re: how to display picture to asp .net, default.aspx?

 
0
  #2
Aug 6th, 2007
Try using the image field.

  1. <asp:Image ID="Image1" runat="server" Height="300" Style="border: 1px solid black;width:auto" ImageUrl="~/SlideShow/images/Blue hills.jpg" AlternateText="Blue Hills image" />
There is just two ways to live your life.
One is as though nothing is a miracle.
The other is as if everything is.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC