ASPSnippets.com
Category - DropDownList
Results 1 - 5 of 75
18 Jun 2018 18 Jun 2018 0 Comments  282 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  469 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  605 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  643 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  635 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.
Results 1 - 5 of 75