.Net Tech tips
"Be curious always! For knowledge will not acquire you: you must acquire it."
Pages
27 Jan
Home
About Me
Mahi
ForEach(Minute in MyLife) MyExperience ++;
View my complete profile
Saturday, April 30, 2011
Bind data to a dropdown and Append a default value
Ddl_EMP_ID.DataTextField = "EMP_FNAME";
Ddl_TEMP_ID.DataValueField = "EMP_ID";
Ddl_TEMP_ID.DataSource = dt;
Ddl_TEMP_ID.DataBind();
Ddl_TEMP_ID.Enabled = true;
Ddl_TEMP_ID.Items.Insert(0, new ListItem("Select", "-1"));
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment