944,013 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 9968
  • ASP.NET RSS
Aug 6th, 2007
0

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

Expand Post »
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
Similar Threads
Reputation Points: 11
Solved Threads: 0
Junior Poster in Training
Hellodear is offline Offline
53 posts
since Feb 2007
Aug 6th, 2007
0

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

Try using the image field.

ASP.NET Syntax (Toggle Plain Text)
  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" />
Reputation Points: 347
Solved Threads: 13
Practically a Posting Shark
arjunsasidharan is offline Offline
812 posts
since Aug 2006

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: sending 2 emails in single click event
Next Thread in ASP.NET Forum Timeline: Enable only one user to edit a row in SQL server database using C#, asp.net win apps





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


Follow us on Twitter


© 2011 DaniWeb® LLC