用户验证问题
一下问登陆前台运行的时候代码是(如下),跪求分析:程序代码:
<html xmlns="http://www."> <head><title> </title><link href="App_Themes/Blue/FormProc.css" rel="stylesheet" type="text/css" /><link href="App_Themes/Blue/FormBase.css" type="text/css" rel="stylesheet" /><link href="App_Themes/Blue/FormProc.css" type="text/css" rel="stylesheet" /><link href="App_Themes/Blue/HeadAndBottom.css" type="text/css" rel="stylesheet" /><link href="App_Themes/Blue/Mail.css" type="text/css" rel="stylesheet" /><link href="App_Themes/Blue/Skin.css" type="text/css" rel="stylesheet" /></head> <body> <form name="form1" method="post" action="Login.aspx" id="form1"> <div> <input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" /> <input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" /> <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUJODUzNjUyMjgyZBgBBR5fX0NvbnRyb2xzUmVxdWlyZVBvc3RCYWNrS2V5X18WAgURVXNlckxvZ2luJEJ0TG9naW4FFlVzZXJMb2dpbiRDaGVja0JveFNhdmWAyAITYUTGtpwN72BYSjN6yNlBHw==" /> </div> <script type="text/javascript"> //<![CDATA[ var theForm = document.forms['form1']; if (!theForm) { theForm = document.form1; } function __doPostBack(eventTarget, eventArgument) { if (!theForm.onsubmit || (theForm.onsubmit() != false)) { theForm.__EVENTTARGET.value = eventTarget; theForm.__EVENTARGUMENT.value = eventArgument; theForm.submit(); } } //]]> </script> <script language='javascript' src='/hymis/js/ePassLogin.js' type='text/javascript'></script> <script language='javascript' src='/hymis/js/FlowEvents.js' type='text/javascript'></script> <script language='javascript'>var ApplicationPath='/hymis/';</script> <div> <input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWBgLWseLRDQLC1rPNBgLI5NCkDAL7x5fCDwLi96yzDgLv8sOiDN6tNuvupuHE4C4pxSoFiLNYiEik" /> </div> <table width="100%" height="100%"> <tr> <td> <table style="position: relative;" align="center"> <tr> <td> <img src="images/background/LoginBg.jpg" /> <div style="position: absolute; left: 600; top: 320; width: 200;"> <span id="UserLogin" class="xxx"><table width='100%' cellSpacing='2' cellPadding='0'><TR><TD noWrap>用户名:</TD><TD width='100%'><input name="UserLogin$TextUser" type="text" id="UserLogin_TextUser" style="border-width:1px;border-style:solid;width:100%;" /></TD></TR><TR><TD noWrap>口令:</TD><TD width='100%'><input name="UserLogin$TextPwd" type="password" id="UserLogin_TextPwd" onkeydown="fnTrapEnter('UserLogin',0)" style="border-width:1px;border-style:solid;width:100%;" /></TD></TR><TR><TD align='center' colSpan='2'><input type="image" name="UserLogin$BtLogin" id="UserLogin_BtLogin" onmousedown="onsmit('UserLogin')" src="/hymis/images/signin.gif" style="border-width:0px;" /></TD></TR></table><div style='DISPLAY: none'><input name="UserLogin$TextBoxSN_SERAL" type="text" id="UserLogin_TextBoxSN_SERAL" /><input name="UserLogin$TextBoxDigest" type="text" id="UserLogin_TextBoxDigest" /></div></span> </div> </td> </tr> </table> </td> </tr> </table> <div style='DISPLAY: none'> <OBJECT id='ePass' height='0' width='0' classid='clsid:0272DA76-96FB-449E-8298-178876E0EA89' name='ePass' codebase='files/install.cab#Version=1,0,6,413'> </OBJECT></div> <script language='javascript'> function onsmit(ctl) { return Validate('wixcxetkdautaladfqa',ctl); } </script></form> </body> </html>而程序设计时显示的代码为:
程序代码:
<%@ Page Language="C#" AutoEventWireup="true" %> <html xmlns="http://www."> <head runat="server"> <title></title> <link href="App_Themes/Blue/FormProc.css" rel="stylesheet" type="text/css" /> </head> <body> <form id="form1" runat="server"> <table width="100%" height="100%"> <tr> <td> <table style="position: relative;" align="center"> <tr> <td> <img src="images/background/LoginBg.jpg" /> <div style="position: absolute; left: 600; top: 320; width: 200;"> <UserAuth:Login ID="UserLogin" CssClass="xxx" runat="server" LoginPos="1" LoginStyle="0" DisplayRegLink="false" DisplayValidCode="false" DisplayRememberMe="false" RememberMe="true"/> </div> </td> </tr> </table> </td> </tr> </table> </form> </body> </html>
[ 本帖最后由 tianbian210 于 2011-1-19 16:53 编辑 ]