.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

Bind Image In a GridView

Posted By: Pawan kumar Shukla     Posted Date: June 04, 2011    Points:5   Category :ASP.Net
<asp:GridView ID="gvproducts" AutoGenerateColumns="False" CssClass="trans"
runat="server" EnableModelValidation="True">
<Columns>
<asp:BoundField DataField="name" HeaderText="Product Name" />
<asp:BoundField DataField="product_code" HeaderText="Product Code" />
<asp:BoundField DataField="description" HeaderText="Description" />

<asp:ImageField DataAlternateTextFormatString="no image"
DataImageUrlFormatString='http://dgfdfgsfgd.com/uploads/products/photo/<%# Eval("image") %>'
HeaderText="Product Image">
</asp:ImageField>

</Columns>
</asp:GridView>





-------------************------------------

i like to get image from folder in root but the whole url is not in the data base so i have to defifine some line using path and some path is comming from database if i am usng itemtemplate is causes problem in paging so pla tell me some thing, plz tell me if had to do somthing in code file thanks and it urgent help me plz

Responses
Author: Gowthammanju             
Posted Date: June 04, 2011     Points: 20   

look at the following links

http://www.dotnetspark.com/Forum/2602-retrieve-image.aspx

Thanks & Regards,
GowthamManju
Chennai



Mark if the answer is true
Author: Pawan kumar Shukla             
Posted Date: June 04, 2011     Points: 20   

the is not my answer they have full image data in one colomn

see my code its not like that

Author: Sasi Prabhu             
Posted Date: June 06, 2011     Points: 20   

Refer this Link.

http://www.c-sharpcorner.com/UploadFile/jaiganesh.cegon/398/

Thanks & Regards,
Sasi Prabhu.
Author: shiv chandra             
Posted Date: June 07, 2011     Points: 20   

MSDN link explaining Step By STEP.
http://msdn.microsoft.com/en-us/library/aa479350.aspx

------
Shiva


Regards
Shiva
Author: shiv chandra             
Posted Date: June 07, 2011     Points: 20   


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend