Posted on: 1/16/2014 7:03:18 PM | Views : 590

This is the error i get:
Data source is an invalid type. It must be either an IListSource, IEnumerable, or IDataSource.
and Here is my Code:
using (SqlConnection connection = new SqlConnection("Data Source=PCM13812;Initial Catalog=Newsletter;Integrated Security=True")) { connection.Open(); SqlCommand cmd = new SqlCommand(); cmd = new SqlCommand("Select Email From Newsletter", connection); DropDownList1.DataSource = cmd.BeginExecuteReader(); DropDownList1.DataTextField = "Email"; DropDownList1.DataBind(); } I have a database that contains ID and Email. I have some imputs in it so its not zero.
But for some reason I get an error. can someone help me?
thanks

Go to the complete details ...