Example #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         var data = DBReadManager.GetSubmissionsByStatus(2);
         Session["subdata"] = data;
         gvMNE.Bind(data);
     }
 }
Example #2
0
    protected void btnSearch_Click(object sender, EventArgs e)
    {
        var data = DBReadManager.GetSubmissionsByStatus(2, !string.IsNullOrEmpty(txtTaxRefNo.Text) ? txtTaxRefNo.Text : null,
                                                        !string.IsNullOrEmpty(txtYear.Text) ? txtYear.Text : null);

        if (!data.HasRows)
        {
            MessageBox.Show("No File Submission found for tax Ref No: " + txtTaxRefNo.Text);
        }
        Session["subdata"] = data;
        gvMNE.Bind(data);
    }