protected void Page_Load(object sender, EventArgs e) { if (Request["custid"] == null) { Response.Redirect("Default.aspx"); } int cusid = int.Parse(Request["custid"]); RtpD.DataSource = GlobalFunc.GetOrderDetelFCust(cusid); RtpD.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { if (Request["Prodid"] == null) { Response.Redirect("Default.aspx"); } int prodid = int.Parse(Request["Prodid"]); RtpSumMonth.DataSource = GlobalFuncDbS.GetsumsaleMonth(prodid); RtpSumMonth.DataBind(); RtpSumYear.DataSource = GlobalFuncDbS.GetsumsaleYear(prodid); RtpSumYear.DataBind(); RtpD.DataSource = GlobalFunc.GetSomeProd(prodid); RtpD.DataBind(); }