ASP advanced article online Management Update (vii)

Source: Internet
Author: User
Tags microsoft frontpage
ASP advanced article online Management Update--Homepage and search
Author: Beach Boy
After the addition of the article, save, display, so now it's time to talk about the management of the display of the main page, that is, to display the title of all articles connected to facilitate the viewer to find articles, it should have the function: Display all the article title connection, add date, browse times and other information, but also must provide paging function, Otherwise, the title of so many articles in a page are displayed, it will be very time-consuming and inconvenient to browse, in addition because this program here combined with the article column search function, so here will also be introduced.
The following is a detailed introduction to the main page of the index.asp of these functions of the implementation process and its specific functions:
"Establish a database connection
<!--#include file= "conn.asp"-->
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<title>asp Special Section </title>
<meta name= "generator" content= "Microsoft FrontPage 3.0" >
<link rel= "stylesheet" type= "Text/css" href= "Style.css" >
<script language= "JavaScript" >
function popwin2 (path)
{window.open (Path, "", "Height=450,width=600,resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no, Location=no ");
}
</script>
<%
"Define the maximum article title per page maxperpage, you can modify the number here to achieve your best display effect
Const MAXPERPAGE=18
Dim totalput
Dim currentpage
Dim totalpages
Dim i,j
"If the returned page information is empty, that is, if you enter index.asp directly, then use the first page of the pages defined here
If not IsEmpty (Request ("page") Then
Currentpage=cint (Request ("page")
Else
Currentpage=1
End If
Dim sql
Dim rs
Dim Rstype
Dim typesql
Dim typeid,typename
"If the returned column information is empty, then use the column defined here, where the third column is specified
If not IsEmpty (Request ("typeID")) Then
Typeid=request ("typeID")
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.