无法打开登录所请求的数据库 "ejocc"。登录失败。 用户 'zzejoruntianhang' 登录失败。 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. Exception Details: System.Exception: 无法打开登录所请求的数据库 "ejocc"。登录失败。 用户 'zzejoruntianhang' 登录失败。Source Error: Line 88: { Line 89: string strid = ""; Line 90: tuijiandt = SQLServerDAL.DbHelperSQL.Query("select top 30 id,title,color,weight from newsinfo where (popular =4 or tuijian=1) and auditing = 1 order by istop desc,id desc").Tables[0]; Line 91: Line 92: //头条
用户 'zzejoruntianhang' 登录失败。
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. Exception Details: System.Exception: 无法打开登录所请求的数据库 "ejocc"。登录失败。
用户 'zzejoruntianhang' 登录失败。Source Error:
Line 88: {
Line 89: string strid = "";
Line 90: tuijiandt = SQLServerDAL.DbHelperSQL.Query("select top 30 id,title,color,weight from newsinfo where (popular =4 or tuijian=1) and auditing = 1 order by istop desc,id desc").Tables[0];
Line 91:
Line 92: //头条
然后for循环取得数据。这么低级的写法出现在一试图构件门户网站的程序上实在不能说是种悲哀。
不用控件,加载一点也不会快。甚至更慢,asp.net页面里面任何东西都是控件,你不变成控件,系统自动剖析成控件