-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshowthreadUpdate.aspx
29 lines (28 loc) · 1.31 KB
/
showthreadUpdate.aspx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="showthread.aspx.cs" Inherits="SohhScrape.showthread" %>
<asp:Literal ID="PostContent" runat="server"></asp:Literal><%if (RefreshContainsData)
{ %>
<div id="controls">
<div class="buttonGroup" id="bottomNav">
<%if (CurrentPage == 1)
{ %>
<div class="roundButton">
Prev Page</div>
<%}
else
{%>
<a class="roundButton" href="showthread.aspx?t=<%=ThreadId.ToString() + "&page=" + (CurrentPage - 1).ToString()%>">
Prev Page</a>
<%} %>
<%if (CurrentPage == MaxPages)
{ %>
<!-- <div class="roundButton">Next Page</div> -->
<a class="roundButton" href="#" id="refresh" onclick="showthreadUpdate('showthreadUpdate.aspx?t=<%=ThreadId.ToString() %>&page=<%=MaxPages%>&lastPost=<%=RunningPostCount.ToString() %>'); return false;">Refresh</a>
<%}
else
{%>
<a class="roundButton" href="showthread.aspx?t=<%=ThreadId.ToString() + "&page=" + (CurrentPage + 1).ToString()%>">
Next Page</a>
<%}%>
</div>
</div>
<%} %>