Click here to Skip to main content
15,895,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900