Link to home
Start Free TrialLog in
Avatar of Newpower
Newpower

asked on

asp classic server side processing datatable

get data from database do normal
after then i don't know what to do
i found some example pages but i coudn't find fit answer for me
i am begginner so can u answer and explain the code?      
my goal is following this page https://datatables.net/examples/server_side/simple.html                        
<% if objrs.bof or objrs.eof then %>
						<tr align="center">
						<td colspan="5">글이 없습니다.</td>
						</tr>
						<%
							Else
							'게시물이 있으면 objrs로 현재 페이지와 페이지 크기에 따라 objrs 이동
							objrs.move(intNowpage-1) * intPageSize
							'계속해라 게시물이 끝날때까지
							do until objRs.eof
						%>
						<tr>
							<td><a href="content.asp?seq=<%=objRs(0)%>&page=<%=intNowPage%>&AscDesc=<%=AscDesc%>"><%=objrs(0)%></a></td>
							<td><a href="content.asp?seq=<%=objRs(0)%>&page=<%=intNowPage%>&AscDesc=<%=AscDesc%>"><%=objRs(3)%></a></td>
							<td><a href="content.asp?seq=<%=objRs(0)%>&page=<%=intNowPage%>&AscDesc=<%=AscDesc%>"><%=objRs(1)%></a></td>
							<td><%=left(objrs(5),10)%></td>
							<td><%=objrs(4)%></td>
						</tr>
						<% 
							'다음 objrs로 넘어감
							objrs.movenext
							loop
							end if
							objRs.close
							set objRs = nothing
							objDBConn.close
							set objDBConn = nothing
						%>

Open in new window

Avatar of Big Monty
Big Monty
Flag of United States of America image

it would help if you could clarify exactly what you're looking to do and where you're stuck. The more info you can give us, the better we can help :)

are you having trouble building the table? or saving the data back to the server? what is your ultimate goal you're trying to accomplish?
after then i don't know what to do

that's fine, that's why you're here! what do you WANT to have happen after you load the grid? are you getting any errors? what behavior do you want to have happen?
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.