protected void btn3(object sender, EventArgs e) { if (Session["pw"] != null) { loginflag = (bool)Session["pw"]; } if (!loginflag) { Label7.Text = "Please login in "; return; } useN = (string)Session["un"]; string dd = service.GetData(useN); Label7.Text = dd; }