hello, What is the best way to display the username instead of the Author_Id (foreign Key) when I display a list of records. I am using Linq to Sql on this project.
<% foreach (var item in Model) { %>
<tr>
<td>
<%= Html.Encode(item.Title) %>
</td>
<td>
<%= Html.Encode(item.Author_Id) %>
<% } %>
I'm wondering if I have to pass something from the controller or if I can use lamda expressions to call a particular field based on the foreign key value.