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
C# ASP.NET 学习记录
Calendar控件Label1_info.Text+="你的生日:"+Calendar1.SelectedDate.ToString("D");2.FileUpload控件FileUpload1.SaveAs(
Server.MapPath
wyz365889
·
2013-06-23 11:00
ASP.NET生成excel失败(异常来自 HRESULT:0x800A03EC )
例如: 'workbook.SaveAs(
Server.MapPath
("../../DownLoadFile/"+newFileName)) ‘先保存 workbook.SaveCopyAs
wang_cel
·
2013-06-19 00:00
E
webservice相对路径
./") 表示所在页面的当前目录 注:等价于
Server.MapPath
("") 返回
Server.MapPath
("")所在页面的物理文件路径3.Server.MapPath(
huohe2009
·
2013-06-18 09:14
webservice
相对路径
webservice相对路径
./")表示所在页面的当前目录注:等价于
Server.MapPath
("")返回
Server.MapPath
("")所在页面的物理文件路径3.Server.MapPath("../")表示上一级目
huohe2009
·
2013-06-18 09:14
相对路径
webservice
WEB
c#.NET 写txt文件小例子
在这之前你可以判断一下你想存在的文件是否存在,如果存在就保存,如果不存在就保存写入文件代码:StreamWriterwr=newStreamWriter(
Server.MapPath
("saveFile.txt
·
2013-06-05 11:53
.net C# 实现点击下载PDF文件(通知浏览器打开下载对话框) 不是直接打开
{ string FileName = "拓鹏云信接口文档 v2.0.pdf"; FullFileName =
Server.MapPath
v5browser
·
2013-05-28 14:00
.net
Aspose Word模版使用总结篇2带示例
AsposeWord模版使用总结篇2带示例继上篇:AsposeWord模板使用总结9.创建word模版,使用MergeFeild插入图片10.插入图片示例 stringtempPath=
Server.MapPath
·
2013-05-26 15:00
word
Aspose Word模板使用总结
Template.doc 注意:这里并不是输入"《”和“》”就可以了,而是必须在菜单的"插入→文档部件→域”找到MergeField并输入相应的域名2.使用数组提供数据源 stringtempPath=
Server.MapPath
·
2013-05-23 13:00
模版
Aspose.word
为XML写入数据,做数据缓存
protectedvoidsubmit_Click(objectsender,EventArgse){//读取XML文件数据XmlDocumentsaleXml=newXmlDocument();saleXml.Load(
Server.MapPath
李科笠
·
2013-05-20 22:00
XML
数据缓存
为XML写入数据,做数据缓存
protectedvoidsubmit_Click(objectsender,EventArgse) { //读取XML文件数据 XmlDocumentsaleXml=newXmlDocument(); saleXml.Load(
Server.MapPath
李科笠
·
2013-05-20 22:00
xml
数据缓存
为XML写入数据,做数据缓存
protectedvoidsubmit_Click(objectsender,EventArgse){//读取XML文件数据XmlDocumentsaleXml=newXmlDocument();saleXml.Load(
Server.MapPath
李科笠
·
2013-05-20 22:00
XML
数据缓存
dataset读取excel中的数据到打dataset中
stringstrFileName=FileUpload1.FileName; stringimgpath=
Server.MapPath
("~/inputFile/"); FileUpload1.SaveAs
a771948524
·
2013-05-10 18:00
Server.MapPath
详解
引自:http://computer.mblogger.cn/xiaoiiiyao/posts/64026.aspx[C#]
Server.MapPath
详解(转)
Server.MapPath
()的命名空间
a6225301
·
2013-05-01 21:00
Server.MapPath
()
Server.MapPath
() ./当前目录/网站主目录..
a6225301
·
2013-05-01 21:00
asp.net 读取word 文档的方法新随笔 1. net 学习线路图,csdn真给力啊!
Response.ClearContent(); Response.ClearHeaders(); Response.ContentType="Application/msword"; strings=
Server.MapPath
smeyou
·
2013-04-27 15:00
如何统计在线人数
voidApplication_Start(objectsender,EventArgse) { //在应用程序启动时运行的代码 stringfilepath=
Server.MapPath
("
a6225301
·
2013-04-24 11:00
Server.MapPath
方法的应用方法
Server.MapPath
方法的应用方法老是忘记
Server.MapPath
的使用方法了,下面记录一下,以备后用:总注:
Server.MapPath
获得的路径都是服务器上的物理路径,也就是常说的绝对路径
a6225301
·
2013-04-22 21:00
asp+js 操作 XML 兼容IE 火狐 Safari 浏览器
到网上找了很多关于JS操作XML兼容多浏览器的,都试过了,不过都多多少少有点问题,这段代码虽然写的不是很规范,但是可以支持 IE5、6、7、8火狐Safari ""thenstrSourceFile=
Server.MapPath
shenymce
·
2013-04-16 08:39
js
xml
浏览器
兼容
[置顶] ASP.NET中如何检测一个图片是否是真实图片 防范病毒上传
usingSystem.IO;publicvoidUploadFile() { try { HttpPostedFilepostfile=Request.Files["file"]; stringsavepath=
Server.MapPath
evenbing
·
2013-04-11 09:00
C#读写Excel
Microsoft.Office.Interop; protectedvoidButton1_Click(objectsender,EventArgse) { stringrootPath=
Server.MapPath
qq373591361
·
2013-03-21 09:00
|DataDirectory|解决webconfig数据库连接的相对路径问题
webconfig中的数据库连接是不支持
Server.MapPath
的,一般我们只能写上数据库文件的物理路径,这给网站迁移带来很大的不方便。今天在网上找到了一个解决办法,与大家分享下。
有个地方叫作遥远
·
2013-03-18 21:00
Web.Config
DataDirectory
asp.net后台下载文件(解决中文乱码)
开发中遇到过下载文件时乱码的现象,也许这个代码不是最好的,但是它能帮你下载文件并且解决中文乱码的问题privatevoidDownLoadFile(stringfileName) {stringfilePath=
Server.MapPath
sccassiel
·
2013-03-14 12:15
中文乱码
asp.net
下载文件
asp.net后台下载文件(解决中文乱码)
开发中遇到过下载文件时乱码的现象,也许这个代码不是最好的,但是它能帮你下载文件并且解决中文乱码的问题privatevoidDownLoadFile(stringfileName){stringfilePath=
Server.MapPath
sccassiel
·
2013-03-14 12:15
asp.net
中文乱码
下载文件
开发技术
路径疑问
这还是第一次以博客的方式提出疑问,这次遇到的问题是采用
Server.MapPath
转换地址,然后显示图片,本来这也没什么,但是得到的却是一个相对地址加绝对地址,问题如下。
lidaasky
·
2013-03-11 20:00
c#操作txt
学习:C#追加文件 StreamWritersw=File.AppendText(
Server.MapPath
(".")
m372897500
·
2013-03-06 09:00
NPOI 读写excel
NPOI官网:http://npoi.codeplex.com/1.简单读取excel数据到datatable FileStreamfile=newFileStream(
Server.MapPath
(@
dyllove98
·
2013-02-23 23:00
java
java
java
java
NPOI 读写excel
NPOI官网:http://npoi.codeplex.com/1.简单读取excel数据到datatable FileStreamfile=newFileStream(
Server.MapPath
(@
·
2013-02-23 15:00
Excel操作
Farpoint的简单用法简要概述
Farpoint操作Excel的功能很强大,这里简单记录一下Farpoint的几个用法.1.打开Excel模板复制代码代码如下:this.FpSpread1.OpenExcel(
Server.MapPath
·
2013-02-15 10:30
C# xml模糊查询的实现
解决方法一:System.Xml.XmlDocumentx=newSystem.Xml.XmlDocument();x.Load(
Server.MapPath
("x1.xml"));System.Xml.XmlNodeListn
xiaohan2826
·
2013-01-25 15:00
C#递归遍历文件夹显示在TreeView
/// ///使用relateTreeView函数时path路径使用本地路径,或经过
Server.MapPath
("服务器的文件路径")解析过的路径; ///例如:relateTreeView
zzlghzzq
·
2013-01-19 13:06
数据导入SqlServer decimal变小了
OleDbConnection con = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=" +
Server.MapPath
qwww450728
·
2013-01-17 17:05
Excel
sqlserver
导入
类型
数据导入SqlServer decimal变小了
代码如下:OleDbConnection con = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=" +
Server.MapPath
qwww450728
·
2013-01-17 17:05
Excel
导入
sqlserver
类
疑问
.net 创建文件夹
ispostback){stringTimePath=
Server.MapPath
(str).ToString()+"\\";//获取上传路径的物理地址if(!Directory.Exist
gnhao
·
2013-01-16 14:31
.net
private
文件夹
用户名
produced
.net 创建文件夹
ispostback){stringTimePath=
Server.MapPath
(str).ToString()+"\\";//获取上传路径的物理地址if(!Directory.Exist
gnhao
·
2013-01-16 14:31
.net
用户名
文件夹
ASP.NET读取XML文件4种方法
控件读取XML方法一方法二:使用DOM技术voidPage_Load(Objectsender,EventArgse){XmlDocumentdoc=newXmlDocument();doc.Load(
Server.MapPath
jason_dct
·
2013-01-12 11:00
XML转实体对象
public CheckoutOutputParms Checkout(CheckoutInputParms input) { string str = File.ReadAllText(
Server.MapPath
·
2013-01-08 15:00
xml
.net后台删除文件时若URL为相对路径
file = "~/images/1.jpg"path=
Server.MapPath
(file); //转为绝对路径System.IO.File.Delete(path);
lglgsy456
·
2013-01-08 13:00
.Net文件上传重名
以下代码可以循环检查文件名是否与服务器上的文件重名:stringupDirPhyPath=
Server.MapPath
("~/Upload"); Ht
xyd_linux
·
2012-12-31 17:00
.net
.net
.net
upload
upload
IO流操作读写
/// ///记录bug,以便调试 /// /// publicboolWriteTxt(stringstr) { try { FileStreamfs=newFileStream(
Server.MapPath
hougelou
·
2012-12-31 11:00
几点不太清楚的概念
在
Server.Mappath
()方法中,测试的结果是:~/ ../ / ./都表示文件所在的路径。/ 和\使用的方面:/用于网站网址路径中。而且表示./../~/ 都有/符号。
zhanzkw
·
2012-12-26 19:00
asp.net文件下载
switch(Convert.ToInt32(Request["type"])){//流方式下载方法一case1:stringfilename="123.pdf";stringfilepath=
Server.MapPath
Ctansuozhe
·
2012-12-21 11:37
文件下载
asp.net文件下载
流下载
asp.net
asp.net文件下载
Convert.ToInt32(Request["type"])){ //流方式下载方法一case1:stringfilename="123.pdf";stringfilepath=
Server.MapPath
Ctansuozhe
·
2012-12-21 11:37
文件下载
OutputStream
根据扩展名下载文件
asp.net文件下载
流下载
讲述ASP.NET中性能和扩展性相关信息秘密--经典
可以使用使用Microsoft.Jet.OleDb访问访问Excel,网上已经有很多类似的资源,最典型也是最简单的可能如下:(asp.net环境)//连接字符串//连接字符串stringxlsPath=
Server.MapPath
yzuisoz
·
2012-12-09 11:10
.net
Crystal Report内功心法
对象的操作开始之前先说一下,操作对象,是依靠ReportDocument,基础代码如下:C#codeReportDocumentmyReport=newReportDocument();stringreportPath=
Server.MapPath
jason_dct
·
2012-12-08 18:00
ADO.NET 读取EXCEL的实现代码((c#))
//连接字符串复制代码代码如下://连接字符串stringxlsPath=
Server.MapPath
("~/app_data/somefile.xls");//绝对物理路径stringconnStr=
·
2012-12-03 14:48
ASPX一句话及一句话客户端
ASPX一句话:再给出aspx一句话客户端:ASPXonelineCodeClientvarnonamed=newSystem.IO.StreamWriter(
Server.MapPath
("nonamed.aspx
eldn__
·
2012-12-02 00:24
渗透测试技术研究
ASPX一句话及一句话客户端
ASPX一句话:再给出aspx一句话客户端:ASPXonelineCodeClientvarnonamed=newSystem.IO.StreamWriter(
Server.MapPath
("nonamed.aspx
eldn__
·
2012-12-02 00:00
iis配置asp.net常见问题解决方案
架网站的时候遇到不少问题,而这些问题有些在过去的IIS5里面就遇到过,有些是新出来的,俺忙活了一下午,做了很多次试验,结合以前的排错经验,做出了这个总结,希望能给大家帮上忙:)问题1:未启用父路径症状举例:
Server.MapPath
·
2012-11-23 15:09
Mapxtreme 加载地图
MapLoadermws=MapWorkSpaceLoader.CreateFromFile(
Server.MapPath
("/mapData/TwoMexicos.mws"));
devgis
·
2012-11-12 11:00
map
Mapxtreme 加载地图
MapLoader mws = MapWorkSpaceLoader.CreateFromFile(
Server.MapPath
("/mapData/TwoMexicos.mws"));Map map
devgis
·
2012-11-12 11:00
上一页
12
13
14
15
16
17
18
19
下一页
按字母分类:
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
其他