Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
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?