Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Forum
how to display photo of members in gridview at run time?
November 03, 2008
i have one table of photo_master in which name of photo is stored. and one folder in root i.e image where actually photos of memebrs are stored.
if i am selecting name of city from combo then all records of that city will display in gridview with memebrs' photo
i done it in desing time ....
but how to done it at runtime?
Posted Date: November 03, 2008 Points: 5
Take on Image template column of your gridview and you can set the "DataImageURLField" to the path of the Image .eg
<asp:ImageField DataImageUrlField="Pic_path" ControlStyle-Width="100px" ControlStyle-Height="120px">
For this i suppose you have image path stored in the database. And in the above example "Pic_path" of the database column name where image path is stored.
To post reply
Related Questions Related Questions
How to display Searched Records in Highlight way inside GRIDVIEW ?
how its display the data gridview in vb.net?
Display total in gridview footer
How to display curent date and time and also visitors counting
display dynamic time
asp.net display dynamic time
insert and display data in gridview in c#
Display Result in gridview based on dropdownlist
Latest Forum Questions From The Same Category
How to display the text in the second ck editor with strikes while extracting from database
Mail is working but I want send two excel file to each different person
how to display child nodes with headers and keeping the child nodes in a table
In DataGrid I have Two Dropdownlist, One in Header template and Item Template
Display data directly from database table to PDF using stored procedures in asp.net C#
How to install and use Dev Express ?
Dialogbox Custom Control
Custom Control in Winforms
I just started learning c#.net console application
How to read csv file which have many special character and tabs?
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more
Quick Links For Forum Categories:
Hall of Fame
Terms of Service
Tell A Friend