我的string FilePath=Server.MapPath("../../Photo/Up/"+UserId+"/"+PhotoPath);
Response.Write(FilePath);//输出C:InetputwwwrootPhotoUp123123.jpgPhotoPath为字符串变量
大家帮我看看,在线等结果啊
Response.Write(FilePath);//输出C:InetputwwwrootPhotoUp123123.jpgPhotoPath为字符串变量
大家帮我看看,在线等结果啊
解决方案 »
- WPF中怎样将一个Textbox中的内容保存为txt
- c#数组声明
- 耽误各位大大的时间了,帮忙解决下问题,谢谢了!
- 等待高手解答
- 做个控件,在设计器中从工具框拖动到窗体时,显示在下面定义容器中,而不是Form设计器中, 怎么设置?
- treeView 怎么拖动节点
- 禁止在dataGrid中添加新记录但可以修改已存在的记录(winForm)
- 100分求 Dotfuscator Professional Edition ,不够再加!!!
- 百分求教C#赋值问题
- 怎样把asp.net中的逻辑代码和显示页面的代码分开啊?
- 用js怎么来实现option的选择内容从左边选到右边后左边的所选的内容移除
- Smart Client 分布式事务
Response.Write(FilePath);
FilePath.Substring(FilePath.LastIndexOf("//"));
//输出C:InetputwwwrootPhotoUp123123.jpg
string FilePath=Server.MapPath("~/Photo/Up/"+UserId+"/") +PhotoPath;
string FilePath=Server.MapPath("..//..//Photo//Up//"+UserId+"//"+PhotoPath);
这样试试.
结果一样
Response.Write("<script lanuage=javascript>alert('"+FilePath+"');</script>");
结果:C:inetPutwwwrootPhoto~PhotoUp123123string FilePath=Server.MapPath("..//..//Photo//Up//"+UserId+"//"+PhotoPath);
也不行,结果:C:inetPutwwwrootPhotoPhotoUp123123
string FilePath=Server.MapPath(@"../../Photo/Up/"+UserId+"/"+PhotoPath);
同样
在Application里好像根本没有这个startup方法吧,查了下,vb.NET有