Category - DropDownList
Results 61 - 80 of 161
12 Jun 2019 12 Jun 2019 0 Comments  36727 Views
Here Mudassar Ahmed Khan has explained with an example, how to get Selected Value from DropDownList in GridView in ASP.Net using C# and VB.Net.

The DropDownList inside GridView will be assigned with an OnSelectedIndexChanged event handler and when an Item is selected in the DropDownList, the Selected Value is displayed using JavaScript Alert Message Box.
12 Jun 2019 12 Jun 2019 0 Comments  26840 Views
Here Mudassar Ahmed Khan has explained with an example, how to handle SelectedIndexChanged event for DropDownList inside GridView in ASP.Net using C# and VB.Net.

The DropDownList inside GridView will be assigned an OnSelectedIndexChanged event and when an Item is selected (changed), the SelectedIndexChanged event handler is raised.
12 Jun 2019 12 Jun 2019 0 Comments  13588 Views
Here Mudassar Ahmed Khan has explained with an example, how to use EVAL function to set Selected Value of DropDownList inside GridView in ASP.Net using C# and VB.Net.
15 May 2019 15 May 2019 0 Comments  14023 Views
Here Mudassar Ahmed Khan has explained with an example, how to dynamically populate Year in DropDownList i.e. HTML SELECT element using jQuery.

Inside the jQuery document ready event handler, the DropDownList i.e. HTML SELECT element will be referenced and using a For Loop, one by one Year values will be appended to the DropDownList using jQuery.
15 May 2019 15 May 2019 0 Comments  27102 Views
Here Mudassar Ahmed Khan has explained with an example, how to dynamically populate Year in DropDownList i.e. HTML SELECT element using JavaScript.

Inside the window.onload event handler, the DropDownList i.e. HTML SELECT element will be referenced and using a For Loop, one by one Year values will be appended to the DropDownList using JavaScript.
02 May 2019 02 May 2019 0 Comments  8085 Views
Here Mudassar Ahmed Khan has explained with an example, how to pass (send) DropDownList value using QueryString in ASP.Net using C# and VB.Net.

The DropDownList value will be read and added as QueryString parameter and the Page will be redirected and then on another Page the DropDownList value will be read from QueryString and displayed on Page in ASP.Net using C# and VB.Net.
03 Apr 2019 03 Apr 2019 1 Comments  57201 Views
Here Mudassar Ahmed Khan has explained with an example, how to filter Data using DropDownList in ASP.Net MVC Razor.

The data will be displayed using WebGrid with Paging enabled on Web Page in ASP.Net MVC Razor.

When an option is selected in the DropDownList, the Controller’s Action method will be called and the records from the Database Table will be filtered using Entity Framework and displayed in WebGrid in ASP.Net MVC Razor.
02 Apr 2019 02 Apr 2019 0 Comments  13691 Views
Here Mudassar Ahmed Khan has explained with an example, how to filter WebGrid using DropDownList in ASP.Net MVC Razor.

By default, the WebGrid will display all records with Paging.

When an option is selected in the DropDownList, the Controller’s Action method will be called and the records from the Database Table will be filtered using Entity Framework and displayed in WebGrid in ASP.Net MVC Razor.
01 Jan 2019 01 Jan 2019 0 Comments  8778 Views
Here Mudassar Ahmed Khan has explained with an example, how to dynamically add (insert) Items (Options) to ASP.Net DropDownList on Button Click using JavaScript.

The Items (Options) Text and Value parts will be dynamically fetched from TextBoxes and then the Items (Options) will be added to ASP.Net DropDownList using plain JavaScript.
29 Oct 2018 29 Oct 2018 0 Comments  13021 Views
Here Mudassar Ahmed Khan has explained with an example, how to filter Crystal Report in ASP.Net using C# and VB.Net.

Crystal Report data will be filtered on selection of DropDownList in ASP.Net.
26 Oct 2018 26 Oct 2018 0 Comments  13630 Views
Here Mudassar Ahmed Khan has explained with an example, how to filter RDLC Report in ASP.Net using C# and VB.Net.

RDLC Report data will be filtered on selection of DropDownList in ASP.Net.
18 Sep 2018 18 Sep 2018 0 Comments  18166 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement Grouped DropDownList using HTML OptGroup element in ASP.Net MVC Razor.

The Grouped DropDownList will be populated from database using Entity Framework in ASP.Net MVC Razor.

In HTML DropDownList OptGroup element, which is used to Group items (options) of a DropDownList while in MVC, the Grouping of DropDownList items (options) is done using SelectListItem class and SelectListGroup class.
05 Sep 2018 05 Sep 2018 1 Comments  43738 Views
Here Mudassar Ahmed Khan has explained with an example, how to solve the problem of Bootstrap Modal Popup Auto Closes on PostBack in ASP.Net using C# and VB.Net.

Bootstrap Modal Popup is opened from Client Side and hence when PostBack happens and Page refreshes, the Bootstrap Modal Popup disappears.

Hence in order to keep the Bootstrap Modal Popup across PostBacks, it has to be re-opened after PostBack from Server Side (Code Behind) using RegisterStartupScript method of ClientScript class.
24 Aug 2018 24 Aug 2018 0 Comments  45658 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  24912 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  26351 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 1 Comments  29785 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  51738 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.
17 Jul 2018 24 Aug 2018 0 Comments  60052 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  54756 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.
Results 61 - 80 of 161