I return array of images ( System.Drawing.Image[] ) from database and i want to show them in datagrid or datalist .. Can any tell me how to do that ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, there’s no control that does that as far as I know.
Basically what you need to do is add a new Page (or Handler) to your solution, and from that page, you do a
Response.BinaryWriteto write the image directly to the response. Then in your main page, you link an image to that new page kind of like<img src="MyImage.aspx?Id=1"/>These links should provide you a good start.
http://odetocode.com/articles/172.aspx
https://web.archive.org/web/20210304133428/https://www.4guysfromrolla.com/articles/120606-1.aspx