<% foreach (var item in Model) { %>
<table width="100%" class="topicContainer">
<tr>
<td> <%: Html.DisplayFor(modelItem => item.headerclob) %></td>
</tr>
<tr>
<td><%: Html.ActionLink("ViewTopic", "ViewTopic","Forum" ,
new { id=item.topicId },null) %></td>
</tr>
</table>
<% } %>
I want of link ViewTopic item.headerclob should be displayed in hyperlink without using Razor.
I also want to apply css to it.
I think the below code should work
it use the following format
if you are using MVC 3 then the you can just use “item.topicId” instead of “id = item.topicId”
Edited
yes it works but after removing semicolon from item.headerClob
Edit
add a class to action link then use your css file for setting necessary properties
now you can apply css properties to the action link you set css properties to others
EDIT
If you do not want to use razor, I could suggest you to build anchors by your self like following