上传图片时实现图片预览或上传文件时用label显示文件名

来源:互联网 发布:保友电脑椅 知乎 编辑:程序博客网 时间:2024/06/05 20:05
 
<input class="input" id="file" onpropertychang="document.getElementById('imgphoto').src=this.value" runat="server">

<input class="input "  id="file" onpropertychang="document.getElementById("filename").innerText=this.value"
runat="server">
<asp:label id="filename" runat="server" ></asp:label>