解决了上面两个问题相信大家心里一定有底了吧!下面就开始实现loginaspx页面利用C#和SQL Server创建一个webform页面加入相应的控件具体代码如下
<%@ Page language=c# Codebehind=loginaspxcs
AutoEventWireup=false Inherits=securelogin %>
<!DOCTYPE HTML PUBLIC //WC//DTD HTML Transitional//EN >
<HTML>
<HEAD>
<title>Secure Site</title>
<meta content=Microsoft Visual Studio name=GENERATOR>
<meta content=C# name=CODE_LANGUAGE>
<meta content=javascript name=vs_defaultClientScript>
<meta content=http://schemasmicrosoftcom/intellisense/ie
name=vs_targetSchema>
</HEAD>
<body MS_POSITIONING=GridLayout>
<form id=login method=post runat=server>
<table cellSpacing= cellPadding= border=>
<tr>
<td vAlign=top align=left>
<asp:label id=Message Runat=server ForeColor=#ff>
</asp:label>
</td>
</tr>
<tr>
<td vAlign=top align=left>
<b>Email:</b>
</td>
</tr>
<tr>
<td vAlign=top align=left>
<asp:textbox id=username Runat=server Width=>
</asp:textbox>
</td>
</tr>
<tr>
<td vAlign=top align=left>
<b>Password:</b>
</td>
</tr>
<tr>
<td vAlign=top align=left>
<asp:textbox id=password Runat=server
Width= TextMode=Password>
</asp:textbox>
</td>
</tr>
<tr>
<td vAlign=top align=left>
<asp:checkbox id=saveLogin Runat=server
Text=<b>Save my login</b>>
</asp:checkbox>
</td>
</tr>
<tr>
<td vAlign=top align=right>
<asp:imagebutton id=btnLogin Runat=server
ImageUrl=/images/wk/login/btnLogingif>
</asp:imagebutton>
</td>
</tr>
</table>
</form>
</body>
</HTML>
[] [] [] []