解决方案 »
- detailview的使用问题
- 未能加载文件或程序集“Discuz.Forum”或它的某一个依赖项。系统找不到指定的文件
- 请问如何选中放在AJAX控件 TabContainer中的控件?
- 数据绑定问题 高人指点
- 在.net当在开发wap 急急........
- 为什么做一个DataGrid控件就出现这样的错误
- VSS+VS.net多人开发,出现版本冲突,无法复制引用文件的问题,急...解决就结贴...
- 我想写这样一个函数怎么写呀!
- HTML控件select运行在客户端的问题
- 关于wed.config的配置
- ASP.NET网页调用js
- asp.net模板引擎怎么在html页里用js获取后台传回来的值
修改样式的最好方法,就是把fileupload隐藏了,自定义一个上传界面,点击你自定义的上传按钮触发fileupload 的 chanage事件即可
<!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" />
<title>无标题文档</title>
<style>
input{float:left;margin:0;padding:0;background:none;border:none; }
.upload{ width:300px;height:40px;line-height:40px;position:relative;font-size:18px; overflow:hidden;}
.upload .text{width:220px;border:solid 1px #ccc;height:22px;line-height:22px;}
.upload .file{position:absolute;top:0;right:0;width:100%;height:24px;border:solid 1px #ccc;opacity:0;filter:alpha(opacity=0);cursor:pointer;}
.upload span{float:right;width:60px;height:24px;line-height:24px;background:#09C;color:#fff; text-align:center;cursor:pointer; border-radius:5px; }
</style>
</head><body>
<div class="upload">
<input type="text" class="text" id="txtfile"/>
<span>上传</span>
<input type="file" class="file" onchange="document.getElementById('txtfile').value=this.value;"/>
</div>
</body>
</html>
我后天 要获取 她的 路径,名称,怎么获取
我在后台 如何 获取 路径名称
HttpPostedFile file = Request.Files[0];