[quote]检查一下搜索模型是不是重写了搜索条件。把搜索模型内容贴出来。
[color=#999999]xiyou 发表于 2013-3-28 16:38:03 [/color][url=http://bbs.pageadmin.net/showtopic.aspx?topicid=23923&postid=77800#77800]

[/url][/size][/quote]
模型我好像没改,请帮我看看,谢谢解答![code]<ul class="article">
<%
string Line;
DataTable dt=Get_Data();
DataRow dr;
if(dt.Rows.Count>0)
{
for(int i=0;i<dt.Rows.Count;i++)
{
dr=dt.Rows[i];
if(((i+1)%5)==0)
{
Line="<li class='line'></line>";
}
else
{
Line="";
}
%>
<li class="search"><span class="title">
<a href="<%=Detail_Url(dr)%>" target="_blank" title="<%=Server.HtmlEncode(dr["title"].ToString())%>" style="<%=dr["pa_style"]%>"><%=SubStr(dr["title"].ToString(),100,true)%></a></span>
<span class="date"><%=((DateTime)dr["thedate"]).ToString("yyyy-MM-dd")%></span>
</li><%=Line%>
<%
}
}
else
{
Response.Write("无匹配的记录,请更换关键字重新搜索!");
}
%>
</ul>[/code]