用C#Web做一个简单的用户登录欢迎页
用C#Web做一个简单的登录欢迎页
@(编程语言)
<asp:Label ID=“Label1” runat=“server” Text=“用户名:”></asp:Label>
<asp:TextBox ID=“TextBox1” runat=“server” Width=“172px”></asp:TextBox>
//用户名
<asp:Label ID=“Label2” runat=“server” Text=“密    码:”></asp:Label>
<asp:TextBox ID=“TextBox2” runat=“server” Width=“172px”></asp:TextBox>
//密码
//换行符
<asp:Button ID=“Button1” runat=“server” Text=“登录” οnclick=“Button1_Click” />
代码如下:
![连接数据库](https://img-blog.csdnimg.cn/20190306101615251.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl80MzY3MDA4Ng==,size_16,color_FFFFFF,t_70) 代码如下: