2014年7月13日 星期日

[RESOLVED] dynamically assigning image to literal from code behind but image is not displaying on .aspx


in .aspx



in code behind ( load event of page )


 litTab.Text = "";


but image is not displaying... any idea



Add an HTML img to the literal


litTab.Text = " src='someimage.png'
/>"



ImageButton ib= new ImageButton(); ib.ImageUrl= "~/Images/home.png";

沒有留言:

張貼留言