Click here to Skip to main content
15,879,474 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
i can create one dropdownlist. I click one item how can i retrieve the selected item datatable.

my DropDownList Item is

student
Staff
course
attendance

For example,
I select DropDownList item Course, display the output course details retrieve from course DataTable.

i have already course DataTable.

how to do i refer the source code please send related link or tutorials
Posted
Comments
Varun Sareen 21-Feb-12 23:25pm    
not clear. post some code
Mahmud Hasan 21-Feb-12 23:29pm    
I am not fully clear what you exactly want to know. Can you please re-phrase your problem possibly with some example?

postback property of dropdown list set true
on selectedindexchange event use drop down list selected value
pass it your datatable field filter datatable and populate
second drop down list
 
Share this answer
 
You can bind a datatable to a dropdownlist.
You can use this link[^] to help you out.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900