I have a data base the has a number of tables containing pictures and links to home pages for user profiles when users browes
they can click on a link and go to that web site in my mvc attemp I return a link but all it dose is a post back and the picture colum only shows
System.Byte[] I can make all of this work with asp.net I have all the image handles that work for this this data base dose any one know how to make this work in MVC
Here is the markup
<
h2>Index</h2>
<table>
<tr>
<th></th>
<th>
UserName
</th>
<th>
HomePageUrl
</th>
<th>
NumAdds
</th>
<th>
Signature
</th>
<th>
Picture
</th>
<th>
EntryDate
</th>
</tr>
<% foreach (var item in Model) { %>
<tr>
<td>
<%= Html.ActionLink("Edit",
"Edit", new { id=item.UserId }) %> |
<%= Html.ActionLink("Details",
"Details", new { id=item.UserId })%>
rickj1
Member
385 Points
203 Posts
Links and Pictures in MVC How do I
Apr 15, 2009 07:25 PM|LINK
I have a data base the has a number of tables containing pictures and links to home pages for user profiles when users browes
they can click on a link and go to that web site in my mvc attemp I return a link but all it dose is a post back and the picture colum only shows
System.Byte[] I can make all of this work with asp.net I have all the image handles that work for this this data base dose any one know how to make this work in MVC
Here is the markup
<
h2>Index</h2><table>
<tr>
<th></th>
<th>
UserName
</th>
<th>
HomePageUrl
</th>
<th>
NumAdds
</th>
<th>
Signature
</th>
<th>
Picture
</th>
<th>
EntryDate
</th>
</tr>
<% foreach (var item in Model) { %>
<tr>
<td>
<%= Html.ActionLink("Edit", "Edit", new { id=item.UserId }) %> |
<%= Html.ActionLink("Details", "Details", new { id=item.UserId })%>
</td>
<td>
<%= Html.Encode(item.UserName) %>
</td>
<td>
<%= Html.RouteLink (item.HomePageUrl, "HomePageUrl")%>
</td>
<td>
<%= Html.Encode(item.NumAdds) %>
</td>
<td>
<%= Html.Encode(item.Signature) %>
</td>
<td>
<%=Html.Encode (item .Picture ) %>
</td>
<td>
<%= Html.Encode(String.Format("{0:g}", item.EntryDate)) %>
</td>
</tr>
<% } %>
</table>
<p>
<%= Html.ActionLink("Create New", "Create") %>
</p>
ASP asp.net mvc
www.barterlinks.net