/// /// </summary>
/// <param name="myDDL"></param>
public void BindDataToDropDownList(string TableName, DropDownList myDDL, string stext)
{
DbConnection db=new DbConnection();
DataSet ds = db.GetAllRecord(TableName);
myDDL.DataSource = ds;
myDDL.DataBind();
ListItem mylist = new ListItem(stext, "0");
myDDL.Items.Add(mylist);
myDDL.SelectedIndex=myDDL.Items.Count-1;
//
}
/// <param name="myDDL"></param>
public void BindDataToDropDownList(string TableName, DropDownList myDDL, string stext)
{
DbConnection db=new DbConnection();
DataSet ds = db.GetAllRecord(TableName);
myDDL.DataSource = ds;
myDDL.DataBind();
ListItem mylist = new ListItem(stext, "0");
myDDL.Items.Add(mylist);
myDDL.SelectedIndex=myDDL.Items.Count-1;
//
}