Posted on: 4/8/2011 12:04:32 PM | Views : 501

?
public class Activity { private String _name; public String Name { get { return _name; } set { _name = value; } } } there are other properties in the above class I have another class called class1. In class1, I am calling Activity public class class1 { private Activity _activity; public Activity Activity { get { return _activity; } set { _activity = value;} } } I want to bind my drop downlist with name so what i did is List<class1> values= new List<Class1>(); ddlTest.dataSource = values; ddlTest.DataTestField = "Activity"; ddlTest.dataValueField ="Activity"; ddltest.DataBind(); I am getting namespace.Activity in the drop down several times. How can I get the real value in the drop down. ...

Go to the complete details ...