Apr 22, 2018 06:24 AM|Fei Han - MSFT|LINK
Hi Indu Joshi,
if value of this field is zero then Booked_room_img.gif should be there otherwise selected room image should be there.
In the code that you provided, I can find that you dynamically create ImageButton and specify ImageUrl etc properties for that ImageButton, but you do not add the dynamic ImageButton to a control container (such as Panel control) in your webform page, so
the dynamic ImageButton will not be rendered in your web page. You can try to add your dynamic created controls to control container and check if it displays as expected.