有C#小程序,购买了免费送你...
有没有C#版的...
请问有数据库文件吗?源码目录结构里面没有看到有数据库文件。...
不错不错。。参考下。
教师用户登录出错 “/ts”应用程序中的服务器错误。 -------------------------------------------------------------------------------- 索引超出范围。必须为非负值并小于集合大小。 参数名: index 说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.ArgumentOutOfRangeException: 索引超出范围。必须为非负值并小于集合大小。 参数名: index 源错误: 行 70: for (int i = 0; i <= GridView1.Rows.Count - 1; i ) 行 71: { 行 72: LinkButton lb = (LinkButton)GridView2.Rows[i].FindControl("LinkButton2"); 行 73: string id = GridView2.DataKeys[i].Value.ToString(); 行 74: SqlCommand scd = new SqlCommand("select title from ts_news where id='" id "'", con);
不错不错。。参考下。。
看着功能很全,但这个软件缺少教务系统中最重要的模块,排课、教学计划等等,还有其他别的就不详细说了,不过很感谢开源。
请问你有做好的么,给我发份好么??非常感谢 ……601122326@qq.com
总体构思不错
很好!!!!!
:Z 多谢您的支持哦!
在IE8浏览器中打开管理员默认主页时,左侧的每个按钮控件下面的tree控件的内容显示时都会被下面的按钮控件遮住,怎么解决?
可以换个浏览器或者自己动手调节兼容!
链接数据库 到没有问题 附加即可 但是 上传组件没有 学生 老师的照片 不能上传。。。。
Server Error in '/' Application.<br/>--------------------------------------------------------------------------------<br/><br/>无法打开登录 'TS' 中请求的数据库。登录失败。<br/>用户 'sa' 登录失败。 <br/>Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. <br/><br/>Exception Details: System.Data.SqlClient.SqlException: 无法打开登录 'TS' 中请求的数据库。登录失败。<br/>用户 'sa' 登录失败。<br/><br/>Source Error: <br/><br/><br/>Line 133: }<br/>Line 134: SqlConnection con = new SqlConnection(ConfigurationManager.AppSettings["strcon"]);<br/>Line 135: con.Open();<br/>Line 136: SqlCommand scd = new SqlCommand("select count(*) from ts_teacher_user where userName='" + user + "' and password='" + pwd + "'", con);<br/>Line 137: int count = Convert.ToInt32(scd.ExecuteScalar());<br/> <br/><br/>Source File: c:\jiaow\TS_login.aspx.cs Line: 135 <br/><br/>Stack Trace: <br/><br/><br/>[SqlException (0x80131904): 无法打开登录 'TS' 中请求的数据库。登录失败。<br/>用户 'sa' 登录失败。]<br/> System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +734995<br/> System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +188<br/> System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1838<br/> System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK) +33<br/> System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +628<br/> System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +170<br/> System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +359<br/> System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +28<br/> System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +424<br/> System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66<br/> System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +496<br/> System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +82<br/> System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105<br/> System.Data.SqlClient.SqlConnection.Open() +111<br/> TS_login.login_Click(Object sender, EventArgs e) in c:\jiaow\TS_login.aspx.cs:135<br/> System.Web.UI.WebControls.Button.OnClick(EventArgs e) +104<br/> System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107<br/> System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7<br/> System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11<br/> System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33<br/> System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5612<br/> <br/>
首先查看网站的web。config文件中的数据库连接属性,看看它的密码是什么 <br/>然后修改你的数据库的密码<br/>例如把sa的密码改为sa: <br/><br/> 双击sa用户--》输入sa--》点击确认--》系统弹出确认密码--》输入123456,点击确认,新密码就设置成功 。
<p> 把web.Config的配置信息修改成自己的数据库登录帐号:如:server=.;database=TS;uid=sa;pwd=123456; </p> <p> 其中server后面的值用.表示本机,UID是自己装的SQL帐户,PWD也是本机上的密码,这样就可以连上了。其它的还没仔细看呢,界面需要再美化下就更好了。 </p> <p> <br /> </p>
Server Error in '/' Application.<br/>--------------------------------------------------------------------------------<br/><br/>无法打开登录 'TS' 中请求的数据库。登录失败。<br/>用户 'sa' 登录失败。 <br/>Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. <br/><br/>Exception Details: System.Data.SqlClient.SqlException: 无法打开登录 'TS' 中请求的数据库。登录失败。<br/>用户 'sa' 登录失败。<br/><br/>Source Error: <br/><br/><br/>Line 133: }<br/>Line 134: SqlConnection con = new SqlConnection(ConfigurationManager.AppSettings["strcon"]);<br/>Line 135: con.Open();<br/>Line 136: SqlCommand scd = new SqlCommand("select count(*) from ts_teacher_user where userName='" + user + "' and password='" + pwd + "'", con);<br/>Line 137: int count = Convert.ToInt32(scd.ExecuteScalar());<br/> <br/><br/>Source File: c:\jiaow\TS_login.aspx.cs Line: 135 <br/><br/>Stack Trace: <br/><br/><br/>[SqlException (0x80131904): 无法打开登录 'TS' 中请求的数据库。登录失败。<br/>用户 'sa' 登录失败。]<br/> System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +734995<br/> System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +188<br/> System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1838<br/> System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK) +33<br/> System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +628<br/> System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +170<br/> System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +359<br/> System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +28<br/> System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +424<br/> System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66<br/> System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +496<br/> System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +82<br/> System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105<br/> System.Data.SqlClient.SqlConnection.Open() +111<br/> TS_login.login_Click(Object sender, EventArgs e) in c:\jiaow\TS_login.aspx.cs:135<br/> System.Web.UI.WebControls.Button.OnClick(EventArgs e) +104<br/> System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107<br/> System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7<br/> System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11<br/> System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33<br/> System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5612<br/> <br/>
检查一下Sql中是否存在 TS 数据库及看一下sa密码是否正确