Windows - How to call mysql after asp.net is connected? For example, how to implement the following login verification function?
迷茫
迷茫 2017-06-06 09:52:04
0
1
659

The database table only has two columns: username and password.

<form id="form1" runat="server">
<p class="biaodan">
        用户名:<asp:TextBox ID="use" runat="server" onKeyUp="value=value.replace(/[\W]/g,'')" MaxLength="12" OnTextChanged="use_TextChanged"></asp:TextBox>
        <br />
        密&nbsp;&nbsp;&nbsp; 码:<asp:TextBox ID="pwd" runat="server" onKeyUp="value=value.replace(/[\W]/g,'')" MaxLength="12" OnTextChanged="pwd_TextChanged"></asp:TextBox>
        <br />
        验证码:
        <%--<span id="code" class="nocode">验证码</span> <input type="text" class="input" />  --%>
        <input type="text"  id="inputCode" />
        <br/><p class="code" id="checkCode" onclick="createCode()" ></p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#" onclick="createCode()">换一张</a>
        <br/>
        <asp:Button ID="check" runat="server" Text="登录" Width="100px" OnClick="btn_login_Click" />
    </p>
</form>
迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(1)
PHPzhong

In the .cs file corresponding to the page, there is a btn_login_Click method. In this method, the user name and password are obtained, and the database is checked to see if there is corresponding data.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!