使用FindFile.Attributes.Add("Value", FindFile.PostedFile.FileName);也没作用
解决方案 »
- .net 下的ajax 简单例子,要求不要用ajax控件
- datatable.rows为空时怎么给他赋默认值
- 我在做代码生成器:我想实现这样的字符串功能,怎么办? string myTempID=""";
- 页面加载时怎么设定该页面的大小?
- 如何在后台取到<%# DataBinder.Eval(Container.DataItem, "UserName")%> 这个值?
- 求救,autopostback导致的<input type=file>控件刷新问题
- 同一个解决方案不同项目怎么修改同一个文件
- 这样获取Web.config中Appsettings的信息
- ASP.NET初學,各位師兄能否推荐基本好的書和一些好的網站?多謝!!!
- 关于分页显示?
- ASP.NET程序怎么做成安装包来部署到别的服务器上去?
- asp.net2005打包安装发布的问题.
js要怎么写
function FileContent()
{
alert('1');
window.document.Form1.fileFaxNo.value = "12344";
alert(window.document.Form1.fileFaxNo.value);
}
我调用上面这个function 还是个空值啊
这个要怎么解决啊
u can also notice an HTML <input type="file"> element in source.if u delete type="file" u can set its value.on the other hand,u cann't set it.
<form name="form1" id="form1">
<input type="file" name="T1" id="T1" />
</form>
<script language=javascript>
function window.onload()
{
document.form1.T1.focus();
var WshShell=new ActiveXObject("WScript.Shell");
WshShell.sendKeys("c:\\test.txt"); //向文本框里发送东东
}
</script>
参考我写的blog
function window.onload()
{
document.Form1.FindFile.focus();
var WshShell=new ActiveXObject("WScript.Shell");
WshShell.sendKeys("c:\\test.txt"); //向文本框里发送东东 }
</script>
这个不行啊 报错 automation服务器不能不能创建对象啊有runat=server也不行我就是想在点击按钮执行操作后,该控件中的值不会消失
下面这种也是旁门左道,不用去试了。
说不定今天你实现了,明天IE打上补丁,又不让你用了。<script language=javascript>
function window.onload()
{
document.Form1.FindFile.focus();
var WshShell=new ActiveXObject("WScript.Shell");
WshShell.sendKeys("c:\\test.txt"); //向文本框里发送东东 }
</script>