Click here to Skip to main content
15,896,730 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
update dropdown binding problem. please suggest any idea
Posted
Comments
MalwareTrojan 8-Mar-13 6:25am    
let me see your code. . . . By which i ll come to know what should be corrected.
vijaygsmart 8-Mar-13 6:29am    
i call userprofilename in ispostback . but after load page dropdownlist show repeated value that's my problem buddy..

private void UserprofileName()
{
// dd1_user.Items.Insert(0, "New User...");
dd1_user.DataSource = BindprofileName();
dd1_user.AppendDataBoundItems = true;
dd1_user.DataTextField = "usrnm";
dd1_user.DataValueField = "usrnm";
dd1_user.DataBind();


}
Shubham Choudhary 8-Mar-13 6:37am    
please add!!!!!
this code before calling your function
---------------------------------------
dd1_user.Items.Clear();

Try Writing without dd1_user.DataSource = BindprofileName();
 
Share this answer
 
any other .. possiblity for binding dropdownlist
 
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