Category - DropDownList
Results 81 - 100 of 161
04 Jul 2018 04 Jul 2018 0 Comments  34824 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  41683 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  11690 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  28334 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  20718 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  17843 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  13170 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  43257 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  30230 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  48699 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  34532 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  55100 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  30136 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  31263 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  10123 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.
09 Nov 2017 09 Nov 2017 0 Comments  18118 Views
Here Mudassar Ahmed Khan has explained with an example, how to dynamically add (insert) and remove (delete) DropDownLists on Button click using jQuery.

When the Add Button is clicked, DropDownLists will be dynamically created and added to the Page and when the Remove Button is clicked, the DropDownLists will be removed from the Page.
08 Nov 2017 08 Nov 2017 0 Comments  9519 Views
Here Mudassar Ahmed Khan has explained with an example, how to dynamically add (insert) and remove (delete) DropDownLists on Button click using JavaScript.

When the Add Button is clicked, DropDownLists will be dynamically created and added to the Page and when the Remove Button is clicked, the DropDownLists will be removed from the Page.
07 Nov 2017 07 Nov 2017 2 Comments  39163 Views
Here Mudassar Ahmed Khan has explained with an example, how to dynamically populate DropDownList i.e. HTML Select element on Button click from JSON Array using jQuery.

The JSON Array will be read and parsed and then one by one the each JSON object from the JSON Array will be added as Items (Options) to DropDownList using jQuery.
07 Nov 2017 07 Nov 2017 1 Comments  60947 Views
Here Mudassar Ahmed Khan has explained with an example, how to dynamically populate DropDownList i.e. HTML Select element on Button click from JSON Array using JavaScript.

The JSON Array will be read and parsed and then one by one the each JSON object from the JSON Array will be added as Items (Options) to DropDownList using plain JavaScript.
07 Nov 2017 07 Nov 2017 0 Comments  7507 Views
Here Mudassar Ahmed Khan has explained with an example, how to dynamically populate DropDownList i.e. HTML Select element on Button click from XML using jQuery.

The XML will be read and parsed and then one by one the Node data from the XML data will be added as Items (Options) to DropDownList using jQuery.
Results 81 - 100 of 161