ASP数据岛操作类(9)
Response.Write "<a title='尾页' href='"&GetUrl("&page&")&"page="&DataSource.PageCount&"'><font face=webdings>:</font></a> "
Else
Response.Write "<font face=webdings>4</font> "
Response.Write "<font face=webdings>:</font> "
End If
Response.Write " [共"&DataSource.RecordCount&"条] ["&PageSize&"条/页] [共"&DataSource.PageCount&"页]"
Response.Write " PageExecute:"&Round((Timer-PageStart)*1000,2)&" MS"
response.write("</td></tr>" & vbCrLf)
End if
'Draw Table end
Response.Write("</table>")
End sub
'====================================================================
'获取当前Url参数的函数
'Codeing by Redsun
'====================================================================
Private Function GetUrl(RemoveList)
Dim ScriptAddress, M_ItemUrl, M_item
ScriptAddress = CStr(Request.ServerVariables("SCRIPT_NAME"))&"?"'取得当前地址
M_ItemUrl = ""
For Each M_item In Request.QueryString
If InStr(RemoveList,M_Item)=0 Then
M_ItemUrl = M_ItemUrl & M_Item &"="& Server.URLEncode(Request.QueryString(""&M_Item&"")) & "&"
End If
Next
GetUrl = ScriptAddress & M_ItemUrl
End Function
内容版权声明:除非注明,否则皆为本站原创文章。