Torna al Thread

protected void Page_Load(object sender, EventArgs e) { if (Session["Authenticate"] != null) { string user = (string)(Session["User"]); lblSessione.Text = string.Concat("Ciao ", user, " puoi usufruire dell'area riservata"); } else { this.ClientScript.RegisterStartupScript(this.GetType(), "Some Title", "<script language=\"javaScript\">" + "alert('Non hai l'autorizzazione ad entrare in questa pagina!Vai alla registrazione');" + "window.location.href='Home.aspx';" + "<" + "/script>"); } }
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5