Click here to Skip to main content
15,889,877 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI ALL ,

I have a panel that must contain images that are loaded dynamically from database so their number is unknown.I googled that but did not find a solution.So please can anyone tell me how can i add the images to this panel ? Please help me this is the last part of my website.

Thanks for any help.
Posted
Comments
OriginalGriff 1-Jul-11 4:00am    
Sorry? "Their number is unknown"? What are you trying to do?
Use the "Improve question" widget to edit your question and provide better information.

From your question I understand that you have images stored in database and you wish to populate them in panel dynamically and the number of images to be populated is unexpected (based on some condition). If that is so you need generate dynamic html from code behind to wrap your images inside <img> tag and insert it into the Panel.
 
Share this answer
 
v4
C++
Do the following steps:

1) Create one blank aspx page
2) Assign panel as Panel1.BackImageUrl= url of that new page
3) Write code In that page that reads image bytes from database and write to that page using page.Response.BinaryWrite(bytes())

The panel will display the image rendered on that page.
 
Share this answer
 

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