Take the community feedback survey now.
AI OnAI Off
Take the community feedback survey now.
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?