你的登录窗口用了什么特殊技术?查看源码,看有没有用户名和密码的HTML
解决方案 »
- asp与asp.net session共享! (急- -||)
- 多条件组合查询中时间段查询?
- asp.net中如何让网页在不同的分辨率下都显示在屏幕的正中间
- if判断的问题?
- OA办公系统开发一问,在线等哈,有兴趣的人请进入共同讨论OA系统
- 知道一个图片在网上的绝对地址,怎么样用程序把这张图片存到本地?
- 关于ReturnValue问题?
- 为什么我的系统偶然会出现数据库操作(插入、修改)超时的现象(数据量很少)
- 某控件有个打印的属性 aaaa.PrintDocument
- 初学.net遇到的棘手问题,请高手多多指教,高分相送!!!
- 急~~~~~~~~~~~~repeater嵌套如何绑定父repeater字段
- ASP.NET连接oracle如何让密码为空?
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<appSettings>
<!--***以下为数据处理串*************************************************************************************************-->
<add key="connType" value="sql"/>
<add key="connString" value="initial catalog=gl;Server=.;Connect Timeout=30;user id=sa;password=;"/>
</appSettings>
<connectionStrings/>
<system.web>
<compilation debug="true">
<assemblies>
<add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="CppCodeProvider, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></assemblies>
</compilation>
<authentication mode="Windows"/>
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="/ucError.aspx"/>
<error statusCode="404" redirect="/ucError.aspx"/>
</customErrors>
</system.web>
</configuration>
-----------------------------------web.config---------------------------------------<?
<%@ OutputCache Location="None" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>登录系统</title>
<link href="share/mainFrame.css" rel="stylesheet" type="text/css" />
<script language="javascript" type ="text/javascript" src="share/Common.js"></script>
</head>
<body >
<form id="loginFrom" class="sysLogin" runat="server" >
<div style="text-align: center" class="sysLogin" >
<br />
<br />
<br />
<br />
<br /> <table unselectable="on" align=center>
<tr>
<td style="width: 704px; height: 521px; background-image:url(images/denglu.jpg); text-align: center;">
<br />
<br />
<br />
<br />
<br />
<table style="width: 376px; height: 58px;">
<tr>
<td style="width: 100px">
</td>
<td style="width: 53px">
</td>
<td colspan="2">
</td>
</tr>
<tr>
<td style="width: 100px; text-align: right">
</td>
<td style="width: 53px; text-align: right">
</td>
<td colspan="2">
<asp:TextBox ID="txtUserName" runat="server" Width="80%">admin</asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtUserName"
ErrorMessage="*" SetFocusOnError="True"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td style="width: 100px; text-align: right">
</td>
<td style="width: 53px; text-align: right">
</td>
<td colspan="2">
<asp:TextBox ID="txtPassWord" runat="server" TextMode="Password" Width="80%"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPassWord"
ErrorMessage="*" SetFocusOnError="True"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td style="width: 100px; text-align: right; height: 27px;">
</td>
<td style="width: 53px; text-align: right; height: 27px;">
</td>
<td colspan="2" style="height: 27px">
<asp:Button ID="btnLogin" runat="server" CssClass="bLogin" Text="登录系统" OnClick="btnLogin_Click" />
</td>
</tr>
<tr>
<td style="width: 100px; height: 40px; text-align: right">
</td>
<td style="width: 53px; height: 40px; text-align: right">
</td>
<td colspan="2" >
</td>
</tr>
</table>
</td>
</tr>
</table>
<asp:Label ID = "lblErro" Text = "" runat="server" ForeColor="red"/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
</div>
</form>
</body>
</html>
-----------------------------------login.aspx---------------------------------------<%
-----------------------------------login.aspx.cs---------------------------------------
using System;
using Microsoft.Win32;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using JieYuan.Fromwork;public partial class Login1 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
Session.Clear();
lblErro.Text = JieYuanControl.userInfo;
}
} protected void btnLogin_Click(object sender, EventArgs e)
{
if (JieYuanControl.proJuageLogin(txtUserName.Text, txtPassWord.Text))
{
printnull();
Response.Redirect("Default.aspx");
}
else
{
JieYuanShow.ShowAlert("对不起,您输入的用户名或密码不正确!");
}
} private void printnull()
{
RegistryKey pregkey;
pregkey = Registry.CurrentUser.OpenSubKey("Software\\Microsoft\\Internet Explorer\\PageSetup\\", true); if (pregkey == null)
{
JieYuanShow.ShowAlert("自动调整失败,打印时会出现页眉信息,请从IE-->文件-->页面设置中清除。该操作不影响系统正常使用!");
}
else
{
pregkey.SetValue("footer", "");
pregkey.SetValue("header", "");
}
}
}-----------------------------------login.aspx.cs---------------------------------------
应该不是浏览器问题,
我做了以下测试:1. 用那台有问题的机子测试了原开发机子的项目 没有问题
2. 用开发机子测试了两个项目 还是现在这个机子上的没有文本框