E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
Server.MapPath
在MapPath的Path参数中不允许字符'..',解决方法。
Server.MapPath
()错误 'ASP 0175 : 80004005' 不允许的 Path 字符< /shipin
·
2015-10-21 10:10
Path
C# 生成js文件
//假设要生成的JS文件为:xyz.js string path =
Server.MapPath
("..
·
2015-10-21 10:45
C#
asp.net Response.AddHeader的方法来下载
System.IO.FileInfo info = new System.IO.FileInfo(
Server.Mappath
("Data\") + "FileName.exe
·
2015-10-21 10:58
response
获得当前应用程序路径C#03
在web中是
Server.MapPath
(".
·
2015-10-21 10:38
应用程序
asp 必须为 MapPath 方法指定 Path 参数
最近在调试一个过去的项目,asp写的,提示:必须为MapPath方法指定Path参数如下图:strPath=
Server.MapPath
("") MapPath的参数不能为空。
testcs_dn
·
2015-10-13 17:00
server
asp
Path
MapPath
ASP检查某一文件是否存在
'检查某一文件是否存在 FunctionCheckFile(FilePath) Dimfso 'Filepath=
Server.MapPath
(FilePath)'网站相对路径 Setfso=Server.CreateObject
james_laughing
·
2015-09-26 08:00
C# X509Certificate类 调用证书
一、命名空间usingSystem.Security.Cryptography.X509Certificates;二、调用代码stringcertPath=
Server.MapPath
("/weixinApp
文__武
·
2015-07-30 10:00
C#后台WebMethod方法中调用
Server.MapPath
方法
System.Web.HttpContext.Current.Server.MapPath(url);
nan2008zzu
·
2015-07-27 15:00
asp利用winrar解压缩文件
'当前文件夹路径
server.MapPath
(".
·
2015-07-22 13:00
asp
aspx 中
Server.MapPath
() 的问题
以前用的是
Server.MapPath
(".")来获取当前应用的虚拟目录的物理路径,但偶尔发现会出错,可能会返回虚拟目录的上级路径。
谢_涛
·
2015-07-20 21:00
server
asp.net
MapPath
图片切割方法
publicvoidSplitImg(stringimgName,intpart){stringpath=
Server.MapPath
(@"nf\");System.Drawing.Imageimg=System.Drawing.Image.FromFile
白菜都被猪拱了
·
2015-07-20 17:00
c# 图片转二进制/字符串 二进制/字符串反转成图片
protectedvoidButton1_Click(objectsender,EventArgse) { //图片转二进制 byte[]imageByte=GetPictureData(
Server.MapPath
smartsmile2012
·
2015-07-08 09:00
C#读取xml节点数据方法小结
appSettings节点下XML结构如下:1111aa2222bb在C#中,我使用HashTable来进行存储:Hashtableht=newHashtable();stringorgCodePath=
Server.MapPath
spring21st
·
2015-06-08 09:28
一个.net缩放图片保存的例子
//原始图片名称 string originalFilename =
Server.MapPath
("images/original.jpg"); //生成的高质量图片名称 string
·
2015-05-07 18:00
.net
C#实现在服务器端裁剪图片的方法
具体实现方法如下://图片路径StringoldPath=
Server.MapPath
("~/62223231.jpg");//新图片路径StringnewPath=System.IO.Path.GetExtension
gogo
·
2015-04-25 15:25
C#显示文件夹下所有图片文件的方法
具体实现方法如下:protectedvoidPage_Load(objectsender,EventArgse){FileInfo[]fs1=(newDirectoryInfo(
Server.MapPath
songguo
·
2015-04-22 12:17
asp.net excel模板下载
stringfilePath=
Server.MapPath
("~/model/模板.xls");//路径FileInfofileInfo=newFileInfo(filePath);System.Web.HttpContext.Current.Response.Charset
haishu
·
2015-04-12 00:00
asp.net excel模板下载
string filePath =
Server.MapPath
("~/model/模板.xls");//路径 FileInfo fileInfo = new FileInfo(filePath
·
2015-04-12 00:00
asp.net
C#进行文件读写、创建、复制、移动、删除的方法
具体分析如下:1.文件夹创建、移动、删除//创建文件夹Directory.CreateDirectory(
Server.MapPath
("a"));Directory.CreateDirectory(
Server.MapPath
乐乐010
·
2015-03-30 15:48
c# word 转 pdf 利用word软件的另存为功能
添加类文件WordToPDF详见附件调用方法:if(WordToPDF.Convert(
Server.MapPath
(filename),
Server.MapPath
(dFile))){resall.playfile
小仙女KOMons
·
2015-03-27 11:57
pdf
word
文件转换
c#net
c# word 转 pdf 利用word软件的另存为功能
添加类文件 WordToPDF 详见附件调用方法: if(WordToPDF.Convert(
Server.MapPath
(filename),
Server.MapPath
(dFile)))
zhaoyingyatou
·
2015-03-27 11:57
word
pdf
文件转换
asp.net在网站根目录下创建文件夹
假设要在asp.net网站的根目录下建立文件夹hovertree,C#代码如下: string m_keleyiFolderName =
Server.MapPath
("/hovertree
hvt
·
2015-03-13 01:00
.net
C#
hovertree
asp.net
Web Forms
asp.net在网站根目录下创建文件夹
假设要在asp.net网站的根目录下建立文件夹hovertree,C#代码如下: string m_keleyiFolderName =
Server.MapPath
("/hovertree
·
2015-03-13 01:00
asp.net
excel导入 导出 兼容各个版本服务器不装EXCEL也可以
2 //导入 3 public void OnSubmit() 4 { 5 string path =
Server.MapPath
("
·
2015-02-09 16:00
Excel
C#解析XML详解(XPath以及带命名空间NameSpace)
protectedvoidButton1_Click(objectsender,EventArgse) { Label1.Text=""; XmlDocumentdoc=newXmlDocument(); stringxmlPath=
Server.MapPath
smartsmile2012
·
2015-02-06 15:00
在IE浏览器中打开WORD、EXCEL、PDF和TXT文件
IsPostBack)4 {5 string fname =
Server.MapPath
(".") + @"\Files\FarPointOne.doc";6 Response.ClearContent
zhaoyingyatou
·
2015-02-03 09:41
网页显示word
IE浏览器中打开WORD
简单的ASP生成HTML程序
方法一:set fso=server.CreateObject("scripting.filesystemobject")set f1=fso.opentextfile(
server.MapPath
anhoo
·
2015-01-31 15:00
数据库连接方式汇总
setadocon=Server.Createobject("adodb.connection")adoconn.Open"Driver={MicrosoftAccessDriver(*.mdb)};DBQ="&_
Server.MapPath
Sakuraznn
·
2015-01-19 15:13
oracle
数据库
mysql
mssq
【ASP.Net】下载服务器端txt或者xml文件
protectedvoidfiledownload() { stringdestFileName="temp.txt"; destFileName=
Server.MapPath
(".")
ghxbob
·
2015-01-05 23:00
C#获取指定文件夹空间大小
protectedvoidPage_Load(objectsender,EventArgse){Response.Write(GetDirectoryLength(
Server.MapPath
("upload
hemeinvyiqiluoben
·
2014-12-29 16:00
C#中网站根路径、应用根路径、物理路径、绝对路径,虚拟路径的区别
C#中网站根路径,站点的最外一层/表示 应用根路径~/表示,有时候C#程序路径并不是网站路径 物理路径
server.mappath
("~/")是指应用程序放在服务器硬盘的位置c:\aaa\bbb\ccc
u013782203
·
2014-12-26 21:00
asp access 中文问题
asp获取access表字段名称 DBname="JXC.mdb" connstr="DBQ="+
server.mappath
(dbName)+";DefaultDir=;DRIVER={MicrosoftAccessDriver
rrr4578
·
2014-12-02 18:00
20141111-WCF获得Web路径
在WCF中调用
Server.MapPath
获取服务发布目录路径在WCF中调用
Server.MapPath
获取服务发布目录路径在WCF中想使用Server.Map获取当前服务发布目录的绝对路径。
几维
·
2014-11-26 16:00
asp.net 保存网页上的图片到本地
protectedvoidButton1_Click(objectsender,EventArgse){ stringurl=
Server.MapPath
("/img/image.png"); FileInfofile
hu285279904
·
2014-11-06 09:00
图片
C#
asp.net
LINQ系列:LINQ to XML操作
创建XML文件 string xmlFilePath =
Server.MapPath
("Data/Product.xml"); XDocument doc = new XDocument
·
2014-11-02 23:00
LINQ
c# File 操作
---------文件夹创建、移动、删除--------- //创建文件夹 Directory.CreateDirectory(
Server.MapPath
("a")); Directory.CreateDirectory
·
2014-09-04 11:00
File
c# 删除文件中的图片
补充一点基础知识:
Server.MapPath
的命名空间是:System.Web.HttpContext.Current.Server.MapPath();但是在从内置Page类继承的类中可以直接写
Server.MapPath
"data.mdb
清风远行
·
2014-09-02 15:49
c#
开发
在windows 2003下设置IIS及DNS常见的一些问题
架网站的时候遇到不少问题,而这些问题有些在过去的IIS5里面就遇到过,有些是新出来的,俺忙活了一下午,做了很多次试验,结合以前的排错经验,做出了这个总结,希望能给大家帮上忙:问题1:未启用父路径症状举例:
Server.MapPath
唐培彬
·
2014-08-26 19:52
windows
dns
2003
IIS
虚拟路径的转换
在一般应用程序中使用
server.MapPath
需要HttpContext.Current.Server.MapPath("c:/1.txt");这样写 而在一般应用程序中使用Request.MapPath
Fanbin168
·
2014-08-08 23:00
ASP连接11种数据库的方法
setadocon=Server.Createobject("adodb.connection")adoconn.Open"Driver={MicrosoftAccessDriver(*.mdb)};DBQ="&_
Server.MapPath
sucre
·
2014-07-30 10:00
数据库
职场
asp
休闲
ASP的
Server.MapPath
()不同参数返回路径总结
在使用
Server.MapPath
()的时候,有很多的参数,什么绝对路径啊,相对路径啊,这些不复杂但是很容易弄混淆的东西,这里将他做一个整理。复制代码代码如下:./当前目录/网站主目录..
明凯
·
2014-07-23 11:25
文件下载的两种方法
public void ExcelModel() { var filePath =
Server.MapPath
(@"~/ExcelModel
·
2014-07-22 13:00
文件下载
asp.net获取网站目录物理路径
页面后台cs文件的相对网站根目录的路径/view/Atlasstring rootPath1=
Server.MapPath
("~"); string rootPath2 = Request.ApplicationPath
psvmc
·
2014-06-30 15:00
上传图片到网站的后台代码
stringfilename=System.IO.Path.GetFileName(this.FileUpload1.FileName);//获取上传文件的名称 stringphypath=
Server.MapPath
恝置
·
2014-06-22 07:31
上传文件
图片
网站
asp.net 动生静技术
System.Net; protected void Button1_Click(object sender, EventArgs e) { string Mypath =
Server.MapPath
1473348968
·
2014-06-02 23:18
asp.net
动生静技术
动生静技术
C#文件及文件夹操作示例
---------文件夹创建、移动、删除---------//创建文件夹Directory.CreateDirectory(
Server.MapPath
("a"));Directory.CreateDirectory
cafuc46wingw
·
2014-05-20 14:00
C#
数据库连接方式汇总
setadocon=Server.Createobject("adodb.connection")adoconn.Open"Driver={MicrosoftAccessDriver(*.mdb)};DBQ="&_
Server.MapPath
·
2014-05-16 09:13
图片在显示时加上水印
上代码://图片类型 Response.ContentType="image/jpeg"; //元图路径 stringfilePath=
Server.MapPath
("ImgUpload/"+"9d82d158ccbf6c81db35544dbe3eb13533fa4010
xd43100678
·
2014-05-07 16:00
C#文件目录操作完全手册
相对路径转绝对路径string fullfolder = HttpContext.Current.Server.MapPath(folder); 2) 文件移动(改名)File.Move(
Server.MapPath
·
2014-05-06 11:00
C#
C# 上传RAR文件 解压 获取解压后的文件名称
fileExt.ToUpper() == ".RAR") { string zpath =
Server.MapPath
·
2014-04-28 08:00
rar
上一页
10
11
12
13
14
15
16
17
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他