Category - DropDownList
Results 11 - 15 of 89
17 Jul 2018 24 Aug 2018 0 Comments  3890 Views
Here Mudassar Ahmed Khan has explained with an example, how to Call Controller’s Action method on DropDownList Change (SelectedIndexChanged) in ASP.Net MVC Razor.

The DropDownList will be placed inside a Form and when an Item (Option) is selected, the Form will be submitted using the JavaScript onchange (SelectedIndexChanged) event handler of the DropDownList in ASP.Net MVC Razor.
10 Jul 2018 10 Jul 2018 0 Comments  3844 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement jQuery AutoComplete DropDown (ComboBox) in ASP.Net MVC 5 Razor.

The jQuery AutoComplete plugin is actually applied to a TextBox but it can be made to work as a DropDown (ComboBox) by populating the AutoComplete results on TextBox focus as well as when User types in some Text.

The data for the jQuery AutoComplete DropDown (ComboBox) will be populated from database using Entity Framework in ASP.Net MVC Razor.
04 Jul 2018 04 Jul 2018 0 Comments  2471 Views
Here Mudassar Ahmed Khan has explained with an example, how to use For Each loop for populating DropDownList using Model in ASP.Net MVC Razor.

HTML SELECT element will be created in View and a For Each loop will be executed over the Model to create and add HTML OPTION elements to the DropDownList.

The Selected Value of DropDownList is easily available using Model or using Request.Form collection, but in order to get the Selected Text, the Selected Text is copied to a Hidden Field using jQuery and then it is fetched inside Controller in ASP.Net MVC Razor.
18 Jun 2018 18 Jun 2018 0 Comments  2407 Views
Here Mudassar Ahmed Khan has explained with an example, how to clear Model Fields such as TextBox, DropDownList, RadioButtons, CheckBoxes, ListBox etc. after Form Submit in ASP.Net MVC Razor.

The Form Fields which are created using Model class retain the values even after Form submission and hence to clear such Form Fields, Model state needs to be cleared.
31 May 2018 31 May 2018 0 Comments  2129 Views
Here Mudassar Ahmed Khan has explained with an example, how to bind and populate ASP.Net DropDownList control using LINQ to SQL Framework (dbml classes) using C# and VB.Net.

This article covers the basics of adding and generating dbml classes, connecting to database, adding Table entities and Stored Procedures.
Results 11 - 15 of 89