| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 716 人关注过本帖
标题:用户验证问题
取消只看楼主 加入收藏
tianbian210
Rank: 1
等 级:新手上路
帖 子:46
专家分:1
注 册:2008-12-25
结帖率:87.5%
收藏
已结贴  问题点数:20 回复次数:1 
用户验证问题
一下问登陆前台运行的时候代码是(如下),跪求分析:
程序代码:

<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 编辑 ]
搜索更多相关主题的帖子: 用户 
2011-01-19 16:27
tianbian210
Rank: 1
等 级:新手上路
帖 子:46
专家分:1
注 册:2008-12-25
收藏
得分:0 
回复 楼主 tianbian210
谢了。因为一直在搞java,突然看c#不太适应。前台一个aspx,后台cs就不是哪里去了。
2011-01-20 14:04
快速回复:用户验证问题
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.040348 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved