protected void Page_Load(object sender, EventArgs e) { userId = Page.Request.QueryString["ID"]; if (String.IsNullOrEmpty(userId) || userId == "0") { Page.Response.Redirect("Login.aspx"); } mascotaBL = new MascotaBL(); }