i want to make a login page, and i find a template from HERE.
When i replace the login <button>
to <asp:Button>
, the css style look like not being applied with this, why? And how to fix it?
There is my html code:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="nickydemo.loginstyle.Login" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Dark Login Form</title>
<meta charset="utf-8" />
<%--<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">--%>
<link rel="stylesheet" href="css/style.css"/>
<!--[if lt IE 9]><script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
</head>
<body>
<form id="form1" runat="server" class="login">
<p>
<label for="login">Email:</label>
<input type="text" name="login" id="login" value="name@example.com"/>
</p>
<p>
<label for="password">Password:</label>
<input type="password" name="password" id="password" value="4815162342"/>
</p>
<p class="login-submit">
<%--<button type="submit" class="login-button">Login</button>--%>
<asp:Button ID="Button1" CssClass="login-button" runat="server" Text="Login" />
</p>
<p class="forgot-password"><a href="index.html">Forgot your password?</a></p>
</form>
</body>
</html>