public void BindddlRejectReason() { Dictionary <string, string> genDictIsRejected = new Dictionary <string, string>(); processlogVo = new UploadProcessLogVo(); uploadsCommonBo = new UploadCommonBo(); DataSet ds = uploadsCommonBo.GetRejectReasonSIPList(1); if (ds.Tables[0].Rows.Count > 0) { foreach (DataRow dr in ds.Tables[0].Rows) { genDictIsRejected.Add(dr["WRR_RejectReasonDescription"].ToString(), dr["WRR_RejectReasonCode"].ToString()); } if (ddlRejectReason != null) { ddlRejectReason.DataSource = genDictIsRejected; ddlRejectReason.DataTextField = "Key"; ddlRejectReason.DataValueField = "Value"; ddlRejectReason.DataBind(); } } ddlRejectReason.Items.Insert(0, new System.Web.UI.WebControls.ListItem("All", "0")); }