Hi Guest

MobileUser

1 HomePage 1 Jobs 1 WalkIn 1Articles  

Cat Exam

 :) Latest Topic
AJAX
VB.NET
SQL Query
UDDI
CLASS
JavaScript Questions
SharePoint Interview
SilverLight
WCF
general knowledge
 ASP.NET
 :) Hot Jobs
 
 :) Latest Articles


  

 


Different methods to get all DropDownList Item through loop?
Question Posted on 20 Apr 2022

Home >> DotNet >> ASP.NET >> Different methods to get all DropDownList Item through loop?




Different methods to get all DropDownList Item through loop?
Below are the two methods to get all items from dropdownlist and i have used Linq in one method and used foreach to get all items from dropdownlist

(1)Used by LINQ
Below is the HTML part



Dropdownlist HTML

Below is the code to handle dropdownlist



LINQ Loop dropdown


(2)Used by Foreach loop



Other loop dropdown
0
0



 
 Input Your Comments Or suggestions(If Any)
 Name
 Email(optional)
 Comments


Other Important Questions
Use of Calendar control in dotnet with code
How to improve Front End UI performance of dotnet web application?
File upload in dotnet
reverse a string
function of garbage collector






 
Top Searches:asp net questions vb net questions sql query uddl questions class javascript Questions sharepoint interview questions and concept silverlight questions and concept wcf questions beans general knowledge ajax questions
PHP | Biztalk | Testing | SAP | HR |