protected void hplView_Click(object sender, EventArgs e) { var gr = (GridViewRow)((LinkButton)sender).NamingContainer; var HeadNo = (Label)gr.FindControl("lblHeadNoGv"); var PaymentNo = (Label)gr.FindControl("lblPaymentNoGv"); MPDetail.Show(); lblpaymentNo.Text = HeadNo.Text; var biz = new BLL.PaymentBiz(); var res = biz.GetRecriptByHeadRequestNoAndPaymentNo(HeadNo.Text, PaymentNo.Text); if (res == null) { var errorMsg = res.ErrorMsg; UCModalError.ShowMessageError = res.ErrorMsg; UCModalError.ShowModalError(); } else { GVPopupReceipt.DataSource = res.DataResponse; GVPopupReceipt.DataBind(); UpdatePanelSearch.Update(); } }