datalist images

  • Thread starter Thread starter Brent Burkart
  • Start date Start date
B

Brent Burkart

I have a datalist which contains images. I would like to resize these
images after the databind. I have a resize routine, but I am not sure how
to iterate through the datalist and resize these images.

Has anyone done this before? Any help is appreciated.

Thanks,
Brent
 
foreach (DataListItem item in DataList1.Items)
{

//To find the control

Image image = (Image)item.FindControl("yourimage");

}

HTH
Gibs
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top