Related questions
RedirectToAction with parameter
I have an action I call from an anchor thusly, Site/Controller/Action/ID where ID is an int.
Later on I need to redirect to this same Action from a Controller.
Is there a clever way to do this? …
HTML.ActionLink method
Let's say I have a class
public class ItemController:Controller
{
public ActionResult Login(int id)
{
return View("Hi", id);
}
}
On a page that is not located at the Item folder, where ItemController resides, I want to create a link to …
DropDownList in MVC 4 with Razor
I'm trying to create a DropDownList on a razor view.
Would someone help me with this?
Normal HTML5 code:
<select id="dropdowntipo">
<option value="Exemplo1">Exemplo1</option>
<option value="Exemplo2">Exemplo2</…