protected void Page_Load( object sender, EventArgs e ) { BusinessTier.CareTakerOperation doctor = new BusinessTier.CareTakerOperation(); string id = ( string )(Session["RoleID"]); this.lbl_docID.Text = id; this.gv_location.DataSource = doctor.SelectCurrentLocations(); this.gv_location.DataBind(); /* Timers time = new Timers(); time.start(); * */ }
protected void Page_Load( object sender, EventArgs e ) { if ( !Page.IsPostBack ) { BusinessTier.CareTakerOperation carer = new BusinessTier.CareTakerOperation(); string id = ( string )(Session["RoleID"]); this.lbl_careid.Text = id; this.gv_location.DataSource = carer.SelectCurrentLocations(); this.gv_location.DataBind(); /* this.gv_fence_details.DataSource = carer.GetFence(); this.gv_fence_details.DataBind(); */ /* Timers time = new Timers(); time.start(); * */ } }