源码信息

最新源码评论

  • 评论者:dibanzhuanbb
    dibanzhuanbb(用户) 发表于:2008-02-25 13:02:00

    首先衷心的感谢楼主,我下了这个程序,可是调试的时候有错误,提示如下:<br/><i>输入字符串的格式不正确。</i> <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif"><b>说明: </b>执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 <br/><br/><b>异常详细信息: </b>System.FormatException: 输入字符串的格式不正确。<br/><br/><b>源错误:</b> <br/><br/><table class="t_table" cellspacing="1" cellpadding="4" style="width:98%;background: #ffffcc;"><tr><td>行 25:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SqlDataBase ThisB = new SqlDataBase();行 26:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string CheckSql = &quot;select count(*) from UserList where UserName = '&quot; + UserName + &quot;' and PassWord = '&quot; + PassWord + &quot;'&quot;;<font color="red">行 27:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int ThisNum = Convert.ToInt32(ThisB.ReturnSQL(CheckSql));</font>行 28:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (ThisNum &gt; 0)行 29:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</td></tr></table><br/><b><font face="Verdana">源文件: </font></b>c:\Documents and Settings\Administrator\桌面\毕业设计源程序\毕业设计源程序\App_Code\CheckLogin.cs<b><font face="Verdana">&nbsp;&nbsp;&nbsp;&nbsp;行: </font></b>27 <br/><br/><b><font face="Verdana">堆栈跟踪:</font></b> <br/><br/><table class="t_table" cellspacing="1" cellpadding="4" style="width:98%;background: #ffffcc;"><tr><td>[FormatException: 输入字符串的格式不正确。]&nbsp;&nbsp; System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer&amp; number, NumberFormatInfo info, Boolean parseDecimal) +2725283&nbsp;&nbsp; System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +102&nbsp;&nbsp; System.Convert.ToInt32(String value) +68&nbsp;&nbsp; CheckLogin.GiveID(String UserName, String PassWord) in c:\Documents and Settings\Administrator\桌面\毕业设计源程序\毕业设计源程序\App_Code\CheckLogin.cs:27&nbsp;&nbsp; UserControl_Login.ImageButton1_Click(Object sender, ImageClickEventArgs e) in c:\Documents and Settings\Administrator\桌面\毕业设计源程序\毕业设计源程序\UserControl\Login.ascx.cs:29&nbsp;&nbsp; System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +75&nbsp;&nbsp; System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +115&nbsp;&nbsp; System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7&nbsp;&nbsp; System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11&nbsp;&nbsp; System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33&nbsp;&nbsp; System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4926</td></tr></table></font><br/>我怀疑是数据库的连接和配置有问题,要不就是验证码的输入框有问题,哪位高手能帮帮我呀!!!下载完了以后到底应该怎么具体配置呀!!!

    0 个回复