Torna al Thread
query = "INSERT INTO Login(Utente, Password) VALUES ('" + user + "','" + password + "')";
comando = new SqlCommand(query, cn);
try
{
comando.ExecuteNonQuery();
}
catch (Exception err)
{
string messaggio = err.Message;
string jsScript = @"
alert('User o password già utilizzati!\nCambiarli!');
window.location.href='Home.aspx';";
this.ClientScript.RegisterStartupScript(this.GetType(),
"Some Title",
jsScript,
true);
}