protected void Page_Load(object sender, EventArgs e) { lblmsg.Text = ""; lblbook.Text = ""; if (Page.IsPostBack == false) { List <Student> _StudentList = new List <Student>(); _StudentBL = new StudentBL(); _StudentList = _StudentBL.BL_STUDENT_SELECT_RENT_BOOK(0); drppublication.DataSource = _StudentList; drppublication.DataTextField = "STUDENTNAME"; drppublication.DataValueField = "SID"; drppublication.DataBind(); drppublication.Items.Insert(0, "SELECT"); drpbook.Items.Insert(0, "SELECT"); } }