Create a Simple Login Form in ASP.NET using Visual Studio 2022
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="login.aspx.cs" Inherits="LoginFormASP.login" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<h1 align="center">Login Form</h1>
<form id="form1" runat="server">
<table align="center">
<tr>
<td>Username</td>
<td>
<asp:TextBox ID="txtUser" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td>Password</td>
<td>
<asp:TextBox ID="txtPass" runat="server" TextMode="Password"></asp:TextBox>
</td>
</tr>
<tr>
<td></td>
<td>
<asp:Button ID="Button1" runat="server" Text="Login" OnClick="Button1_Click"/>
</td>
</tr>
</table>
</form>
</body>
</html>
.png)
.png)
.png)
.png)
.png)
Comments
Post a Comment