Update Daily News content, for the webmaster is a very headache, first of all, collect a lot of news materials, but also have to make a lot of web pages, every day big and small international news, domestic news, it news, can really you tired. The most fatal point, these loose news is not managed, can not query, can not be online dynamic pruning, news stressing timeliness, when you make a good web page and then uploaded to the server, I am afraid that others have you a step, the news report out. Really thankless, for now our internet environment, online publishing news, dynamic generation of news pages, to add search for news, find the function is essential.
So, how do you use ASP technology to implement a dynamic news publishing system? and the news system practices generally have two kinds, one is to input the news content automatically by the program directly generated HTML files, such as by date and news ID number to do the name of HTM file, we often can see from some big news station such processing. And the other is to directly save the news data to the database, when users read the news. Data from the database, dynamically generated pages.
What is the difference between the two treatments? The first kind of display speed and the negative to the server, is the lightest. For the large flow of the site, speed is life, the site is too slow, who will go to the cable? The latter method is easier to deal with than to teach. Maintenance is also convenient, there are two kinds of double knot, because only the application database can easily handle the query, so that the reader to guide the corresponding news page, combined with the above methods, can be said to be different, now we mainly introduce the kind of dynamic page using the database method.
From the processing process, the main is to provide a management news page (can add and delete Daily News, including news pictures, titles, etc.), and then in to call the news Display page processing. The filter to the news need to be inserted into different styles of the page, so you can not use a fixed format page to display news feeds. They should be made into a pluggable part of the home page, so you can invoke the news on different styles of pages. Just like the following script statement
"Script language=" JavaScript "src=" http//xxx.com.cn/special/linux/lnews/autoup.asp "
"/script"
Finally, there is a detailed content page for reading the news. In general, a program that can complete an online news release consists of four major programs
Addnew.asp (used to save news data to the database) delete.asp (for processing Delete news)
Autoup.asp (used to handle the display of news headlines, that is, to insert the part of the homepage) read.asp (details of dynamically generated news)
Part of the support process is set_disp.asp (for handling the number of news on the home page, etc.)
Of course, the essential thing is a news database.