Click here to Skip to main content
15,794,629 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
While i am coding i have to declare dropdown value in to one variable which datatype is dropdown.

my code

DropDown ddlTaskStatus = Row.FindControl("ddlStatus") as DropDownList;

but i can't access selectedvalue from ddlTaskStatus

so i change my code to

DropDownList ddlTaskStatus = Row.FindControl("ddlStatus") as DropDownList;

now i can access ddlTaskstatus selectedvalue property......
my question is what is the diffrence between dropdown and dropdownlist........????
Updated 19-Mar-14 19:50pm

1 solution

This question was asked before[^]. Check out the answers.
Share this answer
Mohammed Shamsheer 20-Mar-14 1:01am    
Thank you..
Abhinav S 20-Mar-14 1:56am    
Mark as answered if it helped.

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