Hi Praveen,
protected void Page_Load(object sender, EventArgs e)
{
string cs = ConfigurationManager.ConnectionStrings["samplecnstring"].ConnectionString;
SqlConnection cn = new SqlConnection(cs);
SqlDataAdapter da = new SqlDataAdapter("select countryname from country", cn);
DataSet ds = new DataSet();
da.Fill(ds, "Country");
DropDownList1.DataSource = ds;
DropDownList1.DataTextField = "countryname";
DropDownList1.DataValueField = "countryname";
DropDownList1.DataBind();
DropDownList1.Items.Insert(0, "-Select-");
}
Have a good day!!!