Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
Controller:
public class ArticlePageController : PageController<ArticlePage> { public ActionResult Index(ArticlePage currentPage) { ... } [HttpPost] public ActionResult MyDropdownAction(ArticlePage currentPage, string myDropdownValue) { // Do something with myDropdownValue... } }
View:
@model ArticlePage @using (Html.BeginForm("MyDropdownAction", "ArticlePage", new { node = Model.ContentLink }, FormMethod.Post)) { <select name="myDropDownValue" onchange="this.form.submit()"> <option value=""></option> <option value="myvalue">My text</option> </select> }
I need to show a dropdown list on episerver cms website view mode. Is it possible to add a dropdown list and dropdown changed event on the episerver cms website view mode?