Click here to Skip to main content
15,902,938 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Pls some one tell that how to bind id in dropdownlist from database in 3 tier architecture. In single tier architecture am able to fill dropdownlist by datareader, but in 3 tier architecture i am not able to fill id in dropdownlist in 3 tier architecture. Pls some one tell.....
Posted
Comments
JV9999 17-Jun-11 9:37am    
Why are you not able to do that? Without code examples we can't really help you, because we have no idea what you are doing.
thatraja 17-Jun-11 9:45am    
Check data in the datasource, better include your code in your question

1 solution

DropDownList1.DataSource=<datasetobj>.Tables[index];

DropDownList1.DataTextField="id";

DropDownList1.DataBind();
 
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