asp.net c# - need to get height of datalist rows -


i've got datalist in webpage and, in each row, i've got image. i'm wanting stretch image height of each individual row (as row heights differ) far no avail. doing wrong. trying set in c# code behind.

my code (so far) is:

for (int j = 0; j <= dlticksheet.items.count - 1; j++) {     image splitthing = (image)dlticksheet.items[j].findcontrol("imgsplit");     splitthing.height = dlticksheet.items[j].height; } 

thanks.

for don't need use c#. add image background-image html tag. , change background-size 100%. stretch parent container

background-size:100%; 

Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -