mercredi 2 novembre 2016

CSHTML Redirect to Another CSHTML

I am new to MVC and working on my own project. I have a small question regarding redirect to another page. Now the CSHTML is in same view folder. I am passing some data from SQL so every click has a different parameter. How do I set it to where the CSHTML knows to change the parameter itself.

CSHTML

@Html.ActionLink(Html.DisplayFor(modelItem => item.PlayerName).ToHtmlString(), "Details", new { sortOrder = ViewBag.BrandSortParm }) <br />

This only gets me to main page without the parameter of the specific record.

Aucun commentaire:

Enregistrer un commentaire