Click here to Skip to main content
12,509,932 members (42,998 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# ASP.NET
Hi,

Im storing my image in folder and saving the path in database and binding the image in gridview. i want to get the image and display in selectedindex event. i can able to get the text fields in textbox i dnt how to show image from gridview to image option?

this is how im getting the text from gridview
.............................................
txtEditName.Text = gvmerchantlist.Rows[e.NewSelectedIndex].Cells[1].Text;
.............................................

how to get image like this????
Posted 28-Nov-12 20:10pm
Comments
Er. Vikas Sangal 1-Dec-12 1:46am
   
you have to add an hidden field in gridview which have values of path of that image. after that on button click get the path from hidden field assign to image control.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160929.1 | Last Updated 29 Nov 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100