Ok Nilesh I will answer my own question.. but I will cheat from your solution lol cuz it is inspiring .. thanx in advance
<script type="text/javascript">
$(document).ready(function () {
var myMainPath = "updateMyItem";
$("a").each(function(){
var name =$(this).parent("div").child("#itemName").val();
var visit = $(this).parent("div").child("#lastvisit").val();
$(this).attr('href', myMainPath +'?name=' + name + '&lastVisit='+ visit);
});
});
</script>
@foreach (var item in Model)
{
<div>User: <span id="itemName">@item.Name</span><br />
Scores: @item.scores<br />
@Html.TextBox("lastvisit", new { id="lastvisit"});
<a href=""> Update item </a>
</div>
}
you see it can be done by javascript , but i was mistaken to think that you can manipulate it via Razor on the server ..