I have a DataList control on a page. Inside ItemTemplate I have an Image and a Label control. The page get the imageurl from an sql query. The images those are shown in the image control have variable width and height. I want to set it to 160x100(wxh). I can calculate the width ratio and height ratio and have it not increased to more than 160x100.
Not sure how can i resize image control width and height programatically, for each item in datalist.