protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["ReservationId"] != null) { DataView dv = (DataView)VidSelect.Select(DataSourceSelectArguments.Empty); Session["vvid"] = (int)dv.Table.Rows[0][0]; DataView dvx = (DataView)sumamnty.Select(DataSourceSelectArguments.Empty); Double tl = (Double)dvx.Table.Rows[0][0]; DataView dvy = (DataView)sumfac.Select(DataSourceSelectArguments.Empty); Double tl1 = (Double)dvy.Table.Rows[0][0]; DataView dvz = (DataView)summisc.Select(DataSourceSelectArguments.Empty); Double tl2 = (Double)dvz.Table.Rows[0][0]; DataView acum = (DataView)Accum.Select(DataSourceSelectArguments.Empty); Double w = (Double)acum.Table.Rows[0][0]; DataView dmg = (DataView)dmgSum.Select(DataSourceSelectArguments.Empty); Double dgs = (Double)dmg.Table.Rows[0][0]; Label1.Text = dgs.ToString("n2"); w = tl + tl1 + tl2 + w + dgs; Label12.Text = w.ToString("n2"); Session["accum"] = w; accumUpdate.Update(); } }
protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["ReservationId"] != null) { DataView dv = (DataView)VidSelect.Select(DataSourceSelectArguments.Empty); Session["vvid"] = (int)dv.Table.Rows[0][0]; DataView dvx = (DataView)sumamnty.Select(DataSourceSelectArguments.Empty); Double tl = (Double)dvx.Table.Rows[0][0]; amntytotal.Text = tl.ToString("n2"); DataView dvy = (DataView)sumfac.Select(DataSourceSelectArguments.Empty); Double tl1 = (Double)dvy.Table.Rows[0][0]; factotal.Text = tl1.ToString("n2"); DataView dvz = (DataView)summisc.Select(DataSourceSelectArguments.Empty); Double tl2 = (Double)dvz.Table.Rows[0][0]; misctotal.Text = tl2.ToString("n2"); x = Convert.ToDouble(amntytotal.Text); y = Convert.ToDouble(factotal.Text); z = Convert.ToDouble(misctotal.Text); DataView acum = (DataView)Accum.Select(DataSourceSelectArguments.Empty); Double w = (Double)acum.Table.Rows[0][0]; w = w + x + y + z; Label12.Text = w.ToString("n2"); Session["accum"] = w; accumUpdate.Update(); } Label11.Text = ""; }