protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["REQUESTCODE"] != null) { RequestC = Request.QueryString["REQUESTCODE"]; RO = ec.GetRequestbyRequestCode(RequestC); if (Request.QueryString["ItemCode"] != null) { ItCode = Request.QueryString["ItemCode"]; var rd = Session["ItemDetails"]; ec.AddRequestDetailtoCurrentRequest(RequestC, (List <RequestDTO>)rd); Session["ItemDetails"] = null; } } else { Panel2.Visible = true; Panel1.Visible = false; return; } if (!IsPostBack) { FillFields(); ListView1.DataSource = ec.ListAllRequestDetails(RO); ListView1.DataBind(); ListView2.DataSource = ec.ListDisbursementbyRequest(RO); ListView2.DataBind(); } }