asp.net - Condition in ASP Repeater Control -
this situation, wanted check whether datatable contains value particular column, if wanted display image.
here code,
<%if (databinder.eval(container.dataitem, "videoid") != "") {%> <img src="<%#configurationmanager.appsettings["baseurlimages"] %>videoicon.png" class="relatednewsicon" /> <%}%>
it not working, correct me i'm wrong!
thanks in advance, rajesh.
check using condition in c#
if (table.columns.contains("columnname")) { foreach(datarow row in table.rows ) { if(row["column"]!=null || row["column"]!="") { // disable or enable image desire } } }
and bind repeater
Comments
Post a Comment