Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <table>
- <tr>
- <td>
- Login:
- </td>
- <td>
- <ASP:TextBox id="txbLog" runat="server" />
- </td>
- </tr>
- <tr>
- <td>
- Senha:
- </td>
- <td>
- <ASP:TextBox id="txbPass" runat="server" />
- </td>
- </tr>
- <tr>
- <td>
- <ASP:Button id="btnConfirm" runat="server" onClick="call_login" />
- </td>
- </tr>
- <%private void call_login(Object Sender, EventArgs e) {
- if (txbLog.Text.Equals("LOGIN") && txbPass.Text.Equals("SENHA")) {
- //Eventos pós-login, quando o login é efetuado com sucesso...
- MessageBox.Show("Logado com sucesso.");
- Response.Redirect("login.aspx?logado=1");
- }
- }%>
- </table>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment