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

Top 5 Contributors of the Month

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">
<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">



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

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

look at the following links


Thanks & Regards,

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.


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

MSDN link explaining Step By STEP.


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

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