protected void BindPurpose() { ddt = objDist.GetPurposeBAL(ConnKey); if (ddt.Rows.Count > 0) { ddlpurpose.DataSource = ddt; ddlpurpose.DataTextField = "PurposeDesc"; ddlpurpose.DataValueField = "PurposeCode"; ddlpurpose.DataBind(); } }