I have this code:
<%# Eval("DsPathDocumento") != null && !String.IsNullOrEmpty(Eval("DsPathDocumento").ToString()) ? String.Concat("href='/UpLoads/", Eval("DsPathDocumento"), "'") : "style='cursor: default; color:#000000;'" %>>
How would I play this class: class="linkUpload"
within the first condition of the ternary expression? That is, I would just like the part after the "?" take this class so that my jquery function could run.
$(document).ready(function () {
$('.linkUpload').click(function (event) {
event.preventDefault();
window.open($(this).attr("href"), "popupWindow", "scrollbars=yes");
});
});