前台:
<input id="file1" type="file" runat="server" style="width: 257px" onchange="ChangePictrue()" /> //获取图片路径
<td align="left" class="tablebk3" colspan="3">
                            <asp:Image ID="ImagePhoto" runat="server" />  //显示图片
       </td>function ChangePictrue()
 {
 
  var iml=$("#<%=file1.ClientID %>").val();
   $("#<%=ImagePhoto.ClientID %>").attr('src',iml);
}
我想通过file1控件选择到的本地图片路径赋值给ImagePhoto图片控件,但是我ImagePhoto图片控件却不能显示图片。