.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 >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

how to display photo of members in gridview at run time?

Posted By: shahin     Posted Date: November 03, 2008    Points:2   Category :C#
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?

Responses
Author: Rahul             
Posted Date: November 03, 2008     Points: 5   

Hi,
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.



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