Category - DropDownList
Results 81 - 100 of 166
14 Aug 2018 14 Aug 2018 0 Comments  30100 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  36128 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  56589 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  69018 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  61246 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  40798 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  48661 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  13159 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.
15 May 2018 15 May 2018 0 Comments  32645 Views
Here Mudassar Ahmed Khan has explained with an example, how to call SelectedIndexChanged event of ASP.Net DropDownList using JavaScript and jQuery.

First the ASP.Net DropDownList will be referenced using JavaScript or jQuery on Client Side and then its SelectedIndexChanged event will be called by making use of the __doPostBack JavaScript function.
10 May 2018 10 May 2018 0 Comments  23902 Views
Here Mudassar Ahmed Khan has explained with an example, how to get selected Text and Value of DropDownList in ItemTemplate of Repeater Control on Button Click in ASP.Net using C# and VB.Net.

The DropDownList will be populated from database inside the OnItemDataBound event of the Repeater control in ASP.Net using C# and VB.Net.

Each Repeater Item has a Button and when the Button is clicked, the selected Text and Value of the DropDownList is fetched and displayed using JavaScript Alert Message Box.
04 May 2018 04 May 2018 0 Comments  21799 Views
Here Mudassar Ahmed Khan has explained with an example, how to populate (bind) DropDownList in ItemTemplate of Repeater Control in ASP.Net using C# and VB.Net.

The DropDownList will be populated from database inside the OnItemDataBound event of the Repeater control in ASP.Net using C# and VB.Net.
18 Apr 2018 18 Apr 2018 0 Comments  14656 Views
Here Mudassar Ahmed Khan has explained with an example, how to use Generic HTTP Handler to display Binary Images from database in ASP.Net using C# and VB.Net.

The Binary Image will be fetched from database and then displayed in Image control with the help of Generic HTTP Handler in ASP.Net using C# and VB.Net.
14 Feb 2018 16 Jul 2018 0 Comments  48887 Views
Here Mudassar Ahmed Khan has explained with an example, how to get DropDownList Selected Text in Controller in ASP.Net MVC Razor.

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.
13 Feb 2018 13 Feb 2018 0 Comments  32230 Views
Here Mudassar Ahmed Khan has explained with an example, how to save (insert) dynamic DropDownList Selected Value to SQL Server database table in ASP.Net using C# and VB.Net.

This article will also explain how to populate (bind) dynamic DropDownLists from SQL Server database table in ASP.Net using C# and VB.Net.
19 Jan 2018 19 Jan 2018 0 Comments  54539 Views
Here Mudassar Ahmed Khan has explained with an example, how to set Default Selected value (Default Empty value) for Html.DropDownList from Model in ASP.Net MVC Razor.

The DropDownList with Default Selected value will be populated from database using Entity Framework and Html.DropDownList helper function in ASP.Net MVC Razor.
17 Jan 2018 17 Jan 2018 0 Comments  35565 Views
Here Mudassar Ahmed Khan has explained with an example, how to populate (Bind) DropDownList from database using Html.DropDownList Helper function using Entity Framework in ASP.Net MVC Razor.

This article will also explain how to add Default Item (Blank Item) to DropDownList at First position using Html.DropDownList Helper function when populating from database using Entity Framework in ASP.Net MVC Razor.
17 Jan 2018 17 Jan 2018 0 Comments  57934 Views
Here Mudassar Ahmed Khan has explained with an example, how to populate (Bind) DropDownList from database using Entity Framework in ASP.Net MVC Razor.

This article will also explain how to add Default Item (Blank Item) to DropDownList at First position when populating from database using Entity Framework in ASP.Net MVC Razor.
07 Dec 2017 07 Dec 2017 1 Comments  39863 Views
Here Mudassar Ahmed Khan has explained with an example, how to get the selected Text and Value of DropDownList inside SelectedIndexChanged event in ASP.Net using C# and VB.Net.

Inside the SelectedIndexChanged event, the selected Text and Value of ASP.Net DropDownList will be displayed in JavaScript Alert Message Box using C# and VB.Net.
07 Dec 2017 07 Dec 2017 0 Comments  35328 Views
Here Mudassar Ahmed Khan has explained with an example, how to use SelectedIndexChanged event of DropDownList placed inside AJAX UpdatePanel in ASP.Net using C# and VB.Net.

The AsyncPostBackTrigger needs to be specified in the AJAX UpdatePanel in order to fire the SelectedIndexChanged event of the DropDownList using Partial PostBack.

The SelectedIndexChanged event will work / fire / trigger only when the AutoPostBack property of the ASP.Net DropDownList is set to True.
20 Nov 2017 20 Nov 2017 0 Comments  11233 Views
Here Mudassar Ahmed Khan has explained with an example, how to populate Cascading i.e. Dependent Country, State and City DropDownLists using AngularJS in ASP.Net MVC Razor.

The Cascading i.e. Dependent Country, State and City DropDownLists will be populated from database by making use of Entity Framework and AngularJS in ASP.Net MVC Razor.
Results 81 - 100 of 166