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
 
Back
Top