Come faccio a fargli capire che al posto di pippo deve controllarmi un db?
ho già creato la connessione al db e al data set

<script runat="server">

void LoginBtn_Click(Object sender, EventArgs e) {

if (Page.IsValid) {
if ((UserName.Text == "pippo") && (UserPass.Text == "pippo")) {
FormsAuthentication.RedirectFromLoginPage(UserName .Text, true);
}
else {
Msg.Text = "Invalid Credentials: Please try again";
}
}
}

</script>
Grazie a tutti