Category - DropDownList
Results 11 - 15 of 95
24 Aug 2018 24 Aug 2018 0 Comments  3877 Views
Here Mudassar Ahmed Khan has explained with an example, how to bind (populate) DropDownList from ViewModel in ASP.Net MVC Razor.

The DropDownList will be populated from database using Model class and the Html.DropDownListFor Helper method.
24 Aug 2018 24 Aug 2018 0 Comments  2982 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement DropDownList SelectedIndexChanged event in ASP.Net MVC Razor.

When an item is selected in DropDownList, the JavaScript OnChange event handler will be raised which in turn will submit the Form, thus simulating the SelectedIndexChanged event in ASP.Net MVC Razor.
14 Aug 2018 14 Aug 2018 0 Comments  2853 Views
Here Mudassar Ahmed Khan has explained with an example, how to pass (send) DropDownList Selected Value to Controller Action method using Html.ActionLink ASP.Net MVC Razor.
24 Jul 2018 24 Jul 2018 0 Comments  4225 Views
Here Mudassar Ahmed Khan has explained with an example, how to dynamically add DropDownList in ASP.Net GridView using C# and VB.Net.

The DropDownList will be added inside TemplateField column of GridView in ASP.Net.
23 Jul 2018 23 Jul 2018 0 Comments  8600 Views
Here Mudassar Ahmed Khan has explained with an example, how to populate (bind) DropDownList from ViewBag in ASP.Net MVC Razor.

The records from the database will be populated into a Generic List collection of Model class objects and then will be saved into a ViewBag object.

Inside the View, the ViewBag object will be passed to the Html.DropDownList Helper function for populating the DropDownList in ASP.Net MVC Razor.
Results 11 - 15 of 95