c# - How to get value of table instead of Id -
i have asp.net project try data asp:repeater. in moment value using <%# eval("categoryid") %>
, need instead of company.categoryid
company.category.categoryid
, how can in asp.net? in mvc i'm using displayfor(x => x.company.category.categoryid)
, here have smth similar?
this next part of https://stackoverflow.com/questions/23193852/how-to-display-value-in-asprepeater
you can evaluates object properties below,
<%# ((company)(container.dataitem)).category.categoryid %>
Comments
Post a Comment