⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 formrespj.asp

📁 学生论文在线管理系统 采用B/S模型 学生可以从浏览器中提交 浏览论文
💻 ASP
字号:
<%@ LANGUAGE="JSCRIPT" CODEPAGE="936"%>

<% 
//--- Module: FORMRESP.ASP
//--- Simple file upload form processing. 
%>

<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" content="text/html; charset=gb2312">
<TITLE>上传结果</TITLE>
</HEAD>
<BODY>

<%
var upl = Server.CreateObject("SoftArtisans.FileUp");
upl.Path = "c:\Inetpub\wwwroot\wordth";

var temp = new String(Session.Contents("stunoo"));
  length = temp.indexOf(" ");
  stuno = temp.substring(0,length);
Relpath = stuno + ".doc";

//Relpath = "200412262.doc";
 if(upl.IsEmpty)
Response.Write("上传文件大小为零,请检查输入的文件名或者浏览器设置是否正确");
 else if(upl.ContentDisposition != "form-data")	//////////////////////////////////////////
Response.Write("出现错误,可能是浏览器设置与上传机制不符");
 else
{

	//on error resume next
	//---
	//--- Save the file now. If you want to preserve the original user's filename, use
	//---
	//--- upl.Save();

	//---
	//--- OR, if you want set your own name, uncomment one of the below lines
	//---

	upl.SaveAs(Relpath);	//--- this uses .Path property
	//--- upl.SaveAs "d:\someotherdir\myfile.ext"
	//--- upl.SaveAs "\\bowser\calendar\myfile.ext"	//--- NOTE: The anonymous user *must* have network 
						//--- access rights for UNC names to work
	Response.Write("论文已保存在服务器上");
	Response.Write("<br>");
	Response.Write("请打开论文查看是否上传完整"); 
	
	}
%>

</BODY>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -