コード例 #1
0
        protected void btnView_Click(object sender, EventArgs e)
        {
            int madv = int.Parse(drNBH.SelectedItem.Value.ToString());

            Session["madonvi"] = madv;
            grDS.DataSource    = wr.ListWRDonViBH(madv);
            grDS.DataBind();
        }
コード例 #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!this.IsPostBack)
     {
         int             madv = int.Parse(Request.QueryString["dv"]);
         WeeklyReportDAO wr   = new WeeklyReportDAO();
         lblDate.Text    = DateTime.Now.ToString("dd-MM-yyyy");
         grDS.DataSource = wr.ListWRDonViBH(madv);
         grDS.DataBind();
     }
 }