好贴,试用了一下
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0029: Cannot implicitly convert type 'System.Data.DataRowCollection' to 'System.Data.DataRow'
Source Error:
Line 14: for(int i=0;i<dt.Rows.Count;i++)
Line 15: {
Line 16: dr=dt.Rows;
Line 17: %> <li> <span class="title">
Line 18: <a href="<%=Detail_Url(dr)%>" target="<%=Target%>" title="<%=Server.HtmlEncode(dr["title"].ToString())%>"><%=SubStr(dr["title"].ToString(),Title_Num,true)%></a></span>
Source File: c:\Inetpub\wwwroot\whpa\e\zdymodel\article\module\135.ascx Line: 16
出现以上错误,这是什么个情况