2000系统 asp.net页面提交问题
我用asp.net写的一个程序,昨天发现了个特殊问题,放在服务器上运行正常..win xp/vista/2003系统的客户端使用都很正常,就是2000系统客户用ie打开打开页面,输入页面都正常,输入用户名密码后,单击提交,页面就一直闪动,闪个不停..以前我在98系统客户端也见过这个问题..不知道怎么解决? --------------------编程问答-------------------- 有异常了吧...用到数据库了没有 --------------------编程问答-------------------- xp系统用户登陆都很正常..操作也正常的...异常我都有打印的..未出现.. --------------------编程问答-------------------- 没遇见过帮顶吧 --------------------编程问答-------------------- 我看数据应该是还没有进入数据库 --------------------编程问答-------------------- 与用户验证方式有关不妨说说你是怎么验证的 --------------------编程问答-------------------- 我没有用验证控件哈..
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="default.aspx.vb" Inherits="netoa.WebForm1"%>--------------------编程问答-------------------- 顶 --------------------编程问答-------------------- 顶 --------------------编程问答-------------------- <a href="###" onclick="javascript: document.form.reset()"></a>
<HTML>
<HEAD>
<title>
<%=ConfigurationSettings.appSettings("website")%>
</title>
<link rel="Bookmark" href="images/ico.ico">
<link rel="Shortcut Icon" href="images/ico.ico">
<LINK href="Styles.css" type="text/css" rel="stylesheet">
<meta http-equiv='refresh' content='600;URL=default.aspx'>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css"> BODY { BACKGROUND-COLOR: #006599 } </style>
</HEAD>
<body leftmargin="0" rightmargin="0" onbeforeunload="window.location.replace('')">
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<TABLE WIDTH="1000" BORDER="0" align="center" CELLPADDING="0" CELLSPACING="0">
<form id="Form1" method="post" runat="server">
<TBODY>
<TR>
<TD ROWSPAN="2">
<IMG SRC="images/login_1.jpg" WIDTH="245" HEIGHT="349"></TD>
<TD ROWSPAN="2">
<IMG SRC="images/login_2.jpg" WIDTH="120" HEIGHT="349"></TD>
<TD ROWSPAN="2">
<IMG SRC="images/login_3.jpg" WIDTH="191" HEIGHT="349"></TD>
<TD ROWSPAN="2">
<IMG SRC="images/login_4.jpg" WIDTH="85" HEIGHT="349"></TD>
<TD>
<IMG SRC="images/login_5.jpg" WIDTH="190" HEIGHT="191"></TD>
<TD>
<IMG SRC="images/login_6.jpg" WIDTH="169" HEIGHT="191"></TD>
</TR>
<TR>
<TD WIDTH="190" HEIGHT="158" valign="top" background="images/login_7.jpg"><table width="100%" height="97" border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td width="60%" height="97" align="right"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="5">
<asp:Label id="errors" runat="server" ForeColor="Red"></asp:Label></td>
</tr>
</table>
<table width="95%" border="0" cellpadding="0" cellspacing="0" class="css">
<tr>
<td height="30" colspan="2">
用户名:
<asp:TextBox id="username" runat="server" CssClass="bd" Width="94px"></asp:TextBox></td>
</tr>
<tr>
<td height="27" colspan="2">
密 码:
<asp:TextBox id="password" runat="server" CssClass="bd" Width="94px" style="IME-MODE:disabled" TextMode="Password"></asp:TextBox></td>
</tr>
<tr>
<td height="27" colspan="2">
验证码:
<asp:TextBox id="yanzhengma" runat="server" CssClass="bd" Width="44px" style="IME-MODE:disabled"></asp:TextBox> <asp:Image id="Image2" runat="server" ImageUrl="gif.aspx" />
<asp:Label id="yzsss" runat="server" Visible="False">Label</asp:Label></td>
</tr>
<tr>
<td width="136" height="29">
<asp:CheckBox id="jiyi" runat="server" Text="记住用户名密码"></asp:CheckBox>
<asp:LinkButton id="jiyichu" runat="server">[清楚记忆]</asp:LinkButton>
</td>
<td width="42%"><div align="center">
<asp:ImageButton id="ImageButton1" runat="server" ImageUrl="images/denglu.gif"></asp:ImageButton><a href="###" onclick="javascript: document.form.reset()"></a></div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</TD>
<TD>
<IMG SRC="images/login_8.jpg" WIDTH="169" HEIGHT="158"></TD>
</TR>
</TBODY></form>
</TABLE>
</body>
</HTML>
==============================================================
这是做什么的? --------------------编程问答--------------------
<a href="###" onclick="javascript: document.form.reset()"> </a>
==============================================================
这是做什么的?
这个是javasript实现input里的reset --------------------编程问答-------------------- 后台代码呢 --------------------编程问答--------------------
--------------------编程问答-------------------- sqlconn这个数据库连接字符串值在哪里呢?
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
Private Sub ImageButton1_Click(ByVal sender As System.Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImageButton1.Click
If username.Text.Trim = "" Or password.Text.Trim = "" Or yanzhengma.Text.Trim = "" Then
Response.Write(remind("用户名不能为空!\n密码不能为空!\n验证码不能为空!", 0))
Exit Sub
ElseIf Session("VNum").ToString.Trim.ToLower <> yanzhengma.Text.Trim.ToLower Then
Response.Write(remind(Session("VNum") + "验证码错误" + yanzhengma.Text.Trim, 0))
Exit Sub
Else
Dim sqlconn As New SqlConnection
Try
Dim pwss As String = HashPasswordForStoringInConfigFile(password.Text, "MD5")
Dim strSQL As String = "select * from jianhui_sys_admin where jianhui_admin='" & toSQL(username.Text) & "'"
Dim mycomm As SqlCommand = New SqlCommand(strSQL, sqlconn)
Dim mydr As SqlDataReader
mycomm.Connection.Open()
mydr = mycomm.ExecuteReader()
If mydr.Read() Then
If mydr("jianhui_password") = pwss Then
If mydr("locks") = 1 Then
errors.Text = "该用户被锁定!"
Exit Sub
Else
Session("lt_names") = mydr("jianhui_admin")
Session("lt_ids") = mydr("jianhui_id")
Session("lt_pws") = mydr("jianhui_password")
Session("lt_dept") = mydr("dept")
Session("lt_zhiwei") = mydr("zhiwei")
sys_chuqing = mydr("chuqing").ToString.Trim
Session("lt_relname") = mydr("jianhui_name").ToString.Trim
If mydr("bir").ToString.Trim <> "" Then
Try
shengritixing = CType(mydr("bir").ToString.Trim, Date)
Catch ex As Exception
shengritixing = ""
End Try
End If
UpdataCreate("UPDATE [jianhui_sys_admin] SET [online]=1,[lastlogin]='" & Date.Now & "',[click]=[click]+1 where jianhui_id=" & mydr("jianhui_id"))
Dim ri As String = ConfigurationSettings.AppSettings("denglu_rizhi")
If ri = 1 Then
Dim ip As String = Page.Request.UserHostAddress
insertCreate("INSERT INTO [jianhui_sys_admin_log] ([log_username],[log_time],[log_ip]) VALUES ( '" & mydr("jianhui_admin") & "', '" & Date.Now & "', '" & ip & "' )")
End If
'Response.Redirect("zhuan.aspx")
If jiyi.Checked = True Then
Response.Cookies("username").Value = username.Text.Trim
Response.Cookies("password").Value = password.Text.Trim
Response.Cookies("username").Expires = DateTime.Now.AddYears(15) '设置cookies有效期
Response.Cookies("password").Expires = DateTime.Now.AddYears(15) '设置cookies有效期
End If
Response.Redirect("getsystem.aspx")
End If
Else
Response.Write(remind("密码错误!", 0))
End If
Else
Response.Write(remind("用户名不存在!", 0))
End If
mycomm.Connection.Close()
Catch ex As Exception
Response.Write(ex.Message)
Response.End()
End Try
Session("VNum") = ""
End If
End Sub
Private Sub jiyichu_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles jiyichu.Click
Call jiyichula()
End Sub
Sub jiyichula()
Response.Cookies("username").Value = ""
Response.Cookies("password").Value = ""
Response.Cookies("username").Expires = DateTime.Now.AddSeconds(1)
Response.Cookies("password").Expires = DateTime.Now.AddSeconds(1)
username.Text = ""
password.Text = ""
jiyi.Visible = True
jiyichu.Visible = False
End Sub
End Class
为多少? --------------------编程问答-------------------- 放在web.config里的
--------------------编程问答-------------------- server始终保持连接,如果没有信息输出,就输出空符号,这样浏览器认为html文件始终在download,就会正常显示了! --------------------编程问答-------------------- 路过的
<?xml version="1.0" standalone="yes"?>
<configuration>
<appSettings>
<add key="website" value="宁波市流动人口围产保健系统" />
<add key="addr" value="浙江宁波北仑闽江路" />
<add key="url" value="http://localhost:8022/ldrk/" />
<add key="tel" value="0574-86784223" />
<add key="email" value="www@asjob.com" />
<add key="denglu_rizhi" value="1" />
<add key="limit" value="0" />
<add key="connstring" value="server=.;database=ldrk;uid=sa;pwd=;" />
<add key="dataname" value="blzzbOA" />
</appSettings>
</configuration>
顺便测试csdn的 --------------------编程问答-------------------- 你在哪里把sqlconn 和配置文件联系起来了??
还有,你确认这个连接字符串连接数据库没有问题??? --------------------编程问答-------------------- 关注一下! --------------------编程问答-------------------- 连接肯定没有问题。 。。
我这个系统。。有60多个客户端。。都分布在不同地方。。。大家都可以打开的,大家用的都是xp操作系统,而且都在正常使用系统,软件已经用了很长时间了,。。只有惟独的2台电脑是win 2000的操作系统。。出这个问题,我一直搞不明白为什么会这样。。 --------------------编程问答-------------------- 我写asp.net程序也有3年了。 。。大大小小项目也有几十个。。太基础的问题我个人认为还是不会有。。
我觉得这个问题是经验问题。。。,大家都是用ie打开的。。为什么2000系统的用户点击提交按钮后,页面就狂闪。。
请大家帮我解掉这么谜团。。。谢谢。。 --------------------编程问答-------------------- 有沒有用不同的浏览器测过,如opera , firefox --------------------编程问答--------------------
我是说在windows 2000中用不同的浏览器都有问题吗? --------------------编程问答-------------------- 2000的IE版本太旧了吧 --------------------编程问答-------------------- 没有试过不同浏览器 --------------------编程问答-------------------- 没人能解决?
补充:.NET技术 , ASP.NET