조회수 업데이트 썸네일형 리스트형 ASP.NET 글 조회수 증가 세션을 이용하여 게시판 조회수 중복증가 막기.(새로고침 할 때 증가하는 조회수 막기) 1. SQL에 @idx와 @upVisit 변수 두개를 받는 프로시져 SP_BoardNotice_View를 만든다. (SP_BoardNotice_View 프로시져에서 글을 볼 때마다 update가 되도록 한다.) create proc SP_BoardNotice_View ( @idx int, @upVisit int ) as begin update BoardNotice set bvisit = bvisit + @upVisit where idx = @idx select bType, bTitle, bConts, bVisit, bDate, bFile from BoardNotice where idx=@idx end 2. 프로그램에서 .. 더보기 이전 1 다음