CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - Form1
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Sub Category
ASP
ASPX.NET
PHP
JSP/Java
FlashMX
Perl
Other Web Code
SilverLight
Search - Form1 - List
[
WEB Code
]
upclass
DL : 0
一直以来,由于FileSystemObject的局限,所以ASP最大的难题就是文件上传,大多解决法就是安装 第三方上传组件。可第三方组件有很多问题,有的组件要注册,有的组件要在表单中加上他的版权信息。 还有的就是组件的兼容问题。 在网上也流传了很多无组件上传的代码,但都是只能上传文本文件,或是只能将文件上传到数据库中。 我这段时间在研究ASP,发现可以不用第三方组件上传任意类型的文件。就写了这个类,给大家一 个方便,整个类放在一个文件中: upload_5xsoft.inc 在 Example 目录下还有一个完整的多文件上传示 例程序,可以直接使用。 a)可直接运行于 Windows2000+IIS 5 NT4 或是 Win98+PWS, 要安装ADO2.6 下载地址:http://www.microsoft.com/data/: <!--#include FILE="upload_5xsoft.inc"--> 就行了 b) 在使用文件上传时, 表单 form 要加上 enctype="multipart/form-data" 即: <form name="form1" method="post" action="" enctype="multipart/form-data"> <input type="text" value="abc" name="text1"> <input type=file name="file"> <input type=submit name="submit" value="提交"> </form> -All along, due to the limitations of FileSystemObject, so the biggest problem is the ASP file upload, most of the solution method is to install Third-party upload components. Third-party components can be a lot of problems, and some components to be registered, and some components in a form letter with his copyright Information. There is the component of the compatibility problems. The Internet has spread a lot of free component to upload code, but they are only uploading text files, or can upload the file to the database In. I study this period of time in ASP, not third-party components that can upload any type of file. To write this class to everyone A convenient, the whole class in a file: upload_5xsoft.inc in the Example directory there is a complete multilingual Pieces show uploading Example program that can be used directly. a) can be directly run on Windows2000+ IIS 5 NT4 or Win98+ PWS, to install ADO2.6 Download: http://www.microsoft.com
Date
: 2025-12-21
Size
: 7kb
User
:
ICE
[
WEB Code
]
gukev
DL : 0
ASP上传无限多文件版 大部分ASP上传源码只支持单个文件上传或几个,我需要一个接着一个上传...上传无限多个。 所以按自己需求编写了此代码。此代码在无惧上传类 V1.2基础上修改,实现无限多图片上传,支持显示上传后的文件名,实时把图片插入编辑框。 test.asp 为测试文件。 修改这段:onclick="test( <img src= + document.form1.pic.value + ></img> )" 融合你的编辑器格式。 举例: onclick="test( <img> + document.form1.pic.value + </img> )" onclick="test( [IMG] + document.form1.pic.value + [/IMG] )" 作者:guke QQ:6692103-ASP upload unlimited version of most of the ASP file upload file upload source only supports a single or a few, I need one after the upload ... upload an unlimited number. So write according to their own needs this code. This code V1.2 without fear of uploading based on the modified class to achieve an infinite number of pictures uploaded to support the display name of the file upload in real time the picture into the edit box. test.asp for the test file. Change this: onclick = " test (' <img src= + document.form1.pic.value+ ></img> ' ) " Format of your editor integration. For example: onclick =" test (' <img> ' + Document.form1.pic.value+' </img> ' ) " Onclick =" test (' [IMG] ' + document.form1.pic.value+' [/ IMG] ' ) " of: guke QQ: 6692103
Date
: 2025-12-21
Size
: 5kb
User
:
naiooit
[
WEB Code
]
yantaiyl
DL : 0
!--#include file="conn.aspx"--> < set rs1=Server.CreateObject("Adodb.Recordset") sql1="select * from webconfig " rs1.open sql1,conn,1,1 website=trim(rs1("website")) rs1.close set rs1=nothing > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html charset=utf-8" /> <script type="text/javascript" src="/js/jquery.js"></script> <script language="JavaScript" src="/js/artDialog/artDialog.js?skin=default"></script> <script src="/js/login.js" type="text/javascript"></script> <link type="text/css" rel="stylesheet" href="themes/block/main.css" /> <title>< =website ></title> </head> <body class="loginBg"> <div class="login"> <form name="form1" onSubmit="return login() ">-!--#include file="conn.aspx"--> < set rs1=Server.CreateObject("Adodb.Recordset") sql1="select * from webconfig " rs1.open sql1,conn,1,1 website=trim(rs1("website")) rs1.close set rs1=nothing > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html charset=utf-8" /> <script type="text/javascript" src="/js/jquery.js"></script> <script language="JavaScript" src="/js/artDialog/artDialog.js?skin=default"></script> <script src="/js/login.js" type="text/javascript"></script> <link type="text/css" rel="stylesheet" href="themes/block/main.css" /> <title>< =website ></title> </head> <body class="loginBg"> <div class="login"> <form name="form1" onSubmit="return login() ">
Date
: 2025-12-21
Size
: 5.12mb
User
:
宋伟
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.