onpropertychange不是input的有效属性

来源:互联网 发布:ubuntu修改机器名 编辑:程序博客网 时间:2024/05/02 21:32

 我用的是VS2005,怎么提示“验证(XHTML 1.0 Transitonal):属性onpropertychange不是元素input的有效属性”。

代码是:<input id="image" style="width: 310px; height: 22px" onpropertychange="preview.src=image.value"  type="file" name="File1" runat="server"/>
                 <img id="preview" alt="" src="" style="width: 319px; height: 241px" enableviewstate="true"/>

浏览的图片不能在img中显示。

求解。谢谢