About Me

My photo
Web application developer with over 2+yrs exp.Has worked on Asp.net mvc,C#,jquery,core java.

Thursday, August 6, 2009

adding the dataset values to the listbox

Binding the value to the presentation controls like grid,form,details view from data set is very easy....how about binding it to list control??
Today i did that one .... its easy n kool...

ListBox2.DataSource = ds.Tables[0];
ListBox2.DataValueField = "columnname";
ListBox2.DataBind();

Thanks,Sagar.

No comments: