With the development of the Internet, the way people publish and access information has changed radically, more and more people begin to put the network as the most important issue and obtain the letter
, at the same time, the technology that can publish and make information share is more and more. Although these technologies have brought great convenience to the developers, the various original
Some of these technologies are flawed in one way or another. Therefore, when selecting and using a variety of technologies, developers must recognize the advantages of these technologies and
limitations, to learn from each other in order to design a full-featured program.
Ask a question
The author has developed a web-based document resource sharing information Web site in the construction of enterprise intranet Information Network project. The Web site requires uploaded documents to be automatically available on the home page
Connect to the corresponding column by document title according to the category of the document. For this kind of demand, the author utilizes the document upload control of IIS Posting Acceptor
components, combined with database and web technology, a set of Automatic Web page publishing system and document automatic Web page generation system with high automation is developed. In
In the process of developing this system, the author discovers that there are some problems in the use of upload Control Cpshost.dll under IIS. For example, to complete the upload, the author developed a
Two programs: Program One (upload.asp) to provide web-based information document upload input interface; program two (wd_writer.asp) to input the program into the information
Logged in to the database. The relevant code is as follows:
Program One (upload.asp):
......
' Provides a client interface for document uploads
<form enctype= "Multipart/form-data" action= "http://<%= request.servervariables
("SERVER_NAME")%>/scripts/cpshost.dll? Publish?wd_writer.asp "method=" POST ">
<p> Document topics: <input type= "text" name= "subject" ><br>
Author: <input name= "Author" type= "text" ><br>
Publish time: <input name= "Date1" type= "text" ><br>
Upload Document name (click Browse button to choose): <input type= "file" name= "filename" >
Destination URL: <input type= "hidden" name= "TargetUrl"
Value= "http://<%= request.servervariables (" SERVER_NAME ")%>/users/wdls" >
<input type= "Submit" value= "release OK" > </p>
</form>
......
Program II (wd_writer.asp):
<% ' Open Database
Set MyData = Server.CreateObject
("ADODB.") Connection ")
MyData. Open "DSN=XCZH; Uid=sa; pwd=; "
' Take the contents out of the form
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.