How can I make the following code be a list of links instead of a list of buttons?
@foreach (var item in @Model)
{
using (Html.BeginForm(new { action = "GetL", controller = "L" }))
{
<input name="fileLocation" type="submit" value="@item" />
}
}
You can use Html.ActionLink helper method to generate anchor tag
If you want to pass some parameters ( Ex : Id ) to the Action method, you can do it with this override