出来るのだASP Q&A掲示板(過去LOG)
訪問数 52046
昨日 889
今日 776 【PR】 パソコン入門からIT専門書まで幅広く取り揃えています。セブン-イレブン受取り手数料無料のセブンアンドワイ。 |
![]() ![]() ![]() ![]() ![]() |
[3217] Re:検索結果にあてはまらない時のタイトル行の非表示について |
投稿者:nowheremanさん 2003/02/25 15:45:20 |
一部分の抜粋ですが、以下で駄目ですか? -----以下----- <%if CurrentRecord = 0 Then %> <%Response.Write("検索結果はありませんでした")%> <%Else%><!-- ← 追加 --> <% While ((Repeat1__numRows <> 0) AND (NOT result.EOF)) %> <table width="70%" border="1"> <tr> <td width="20%" bgcolor="#FFCC99" height="24" nowrap> <div align="center">部署名</div> </td> <td width="15%" bgcolor="#FFCC99" height="24" nowrap> <div align="center">担当名</div> </td> <td width="10%" bgcolor="#FFCC99" height="24" nowrap> <div align="center">地域</div> </td> <td width="20%" bgcolor="#FFCC99" height="24" nowrap> <div align="center">顧客名</div> </td> <td width="20%" bgcolor="#FFCC99" height="24" nowrap> <div align="center">対象商品等</div> </td> <td width="15%" bgcolor="#FFCC99" height="24" nowrap> <div align="center">締結状況</div> </td> </tr> <!--<% End If %> ← 削除--> <% While ((Repeat1__numRows <> 0) AND (NOT result.EOF)) %> <tr> <td height="33" width="20%" nowrap><%=(result.Fields.Item("部課名").Value)%></td> <td height="33" width="15%" nowrap><%=(result.Fields.Item("営業担当者").Value)%></td> <td height="33" width="10%" nowrap><%=(result.Fields.Item("地域").Value)%></td> <td height="33" width="20%" nowrap><%=(result.Fields.Item("顧客名").Value)%></td> <td height="33" width="20%" nowrap><%=(result.Fields.Item("対象商品").Value)%></td> <td height="33" width="15%" nowrap> <div align="center"><A HREF="result2.asp?<%= MM_keepURL & MM_joinChar(MM_keepURL) & "=" & result.Fields.Item("").Value %>">詳細</A> </div> </td> </tr> <% Repeat1__index=Repeat1__index+1 Repeat1__numRows=Repeat1__numRows-1 result.MoveNext() Wend %> <% End If %><!-- ←削除箇所をここに移動 --> |
![]() ![]() |
![]() ![]() |
TreeBBS For ASP V.0.1.3 |