ASP관련 질문드립니다..

ASP관련 질문드립니다..

QA

ASP관련 질문드립니다..

본문


 
'페이지
totalpage = rs.pagecount
rs.absolutepage = page
 
%>
  <div align="center"><center><p><a href="Write.htm"><img src="images/write_new.gif" align="middle" border="0" WIDTH="31" HEIGHT="30"></a>
        <font face="arial" color="#004080"> <a href="http://ht.1stglobal.co.kr/test/list.asp"><strong><big><big>글 수정안됨.</big></big></strong></font></a>     
  <a href="admin.asp"><img src="images/admin.gif" border="0" align="middle" WIDTH="109" HEIGHT="26"></a>
</p>
  </center></div><div align="center"><center><table border="0" cellspacing="2" width="600">
    <tr>
      <td width="10%" bgcolor="#000080" align="center" height="25"><strong><font face="돋움" size="2" color="#FFFFFF">번호</font></strong></td>
      <td width="20%" bgcolor="#000080" align="center" height="25"><strong><font face="돋움" size="2" color="#FFFFFF">글쓴이</font></strong></td>
      <td width="20%" bgcolor="#000080" align="center" height="25"><strong><font face="돋움" size="2" color="#FFFFFF">날짜</font></strong></td>
      <td width="40%" bgcolor="#000080" align="center" height="25"><strong><font face="돋움" size="2" color="#FFFFFF">제목</font></strong></td>
      <td width="10%" bgcolor="#000080" align="center" height="25"><strong><font face="돋움" size="2" color="#FFFFFF">조회수</font></strong></td>
    </tr>
<% 
i = 1
Do until rs.EOF Or i>rs.PageSize
%>
 <tr>
      <td width="10%" align="center" height="25"><font face="돋움" size="2" color="#000000"><%=rs("num")%></font></td>
      <td width="20%" align="center" height="25"><font face="돋움" size="2" color="#000000"><%=rs("name")%></a></font></td>
      <td width="20%" align="center" height="25"><font face="돋움" size="2" color="#000000"><%=left(rs("writeday"),10)%></font></td>
      <td width="40%" align="left" height="25"><font face="돋움" size="2" color="#000000">       
   
   
      <a href="content.asp?idx=<%=rs("board_idx")%>"><%=rs("title")%></a></font></td>
      <td width="10%" align="center" height="25"><font face="돋움" size="2" color="#000000"><%=rs("readnum")%></font></td>
 
 </tr>
<% 
rs.MoveNext
i=i+1 
Loop
%>  
 
   </table>
  </center></div>
<center><hr width="600"></center>
<center><font face="돋움" size="2" color="#000000">
<% if page <> 1 then%>
< <a href="list.asp?page=<%=page-1%>">이전페이지</a> >
<%end if%>
<% if Cint(page) <> Cint(totalpage) then%>
< <a href="list.asp?page=<%=page+1%>">다음페이지</a> >
<% end if%>
         
<%=page%> page / <%=totalpage%> pages
 
</font>
</center> 
 

 

http://ht.1stglobal.co.kr/test/list.asp 

 

현재 게시판연습중인데..페이지당 글이 5개바께없는데 10줄로 수정하고싶습니다..

 

i = 1로되잇어서 i = -9 이런식으로하면 페이지는 안줄어들고 페이지는 현재페이지그대로남아있고

 

똑같이 반복되는글이 올라옵니다..

 

문법이해가안되는데 주석도 좀달아주시면감사하겠습니다....

이 질문에 댓글 쓰기 :

답변 1

rs.PageSize 값을 확인해보세요.

해당 소스에서는 알 수 없군요.​

답변을 작성하시기 전에 로그인 해주세요.
전체 9
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT