single page it works with master page in content page it does not work just not responding
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script language="javascript" type="text/javascript">
$(function () {
$("#fuUpload").change(function () {
if (typeof (FileReader) != "undefined") {
var regex = /^([a-zA-Z0-9\s_\\.\-:])+(.jpg|.jpeg|.gif|.png|.bmp)$/;
$($(this)[0].files).each(function () {
var file = $(this);
if (regex.test(file[0].name.toLowerCase())) {
var reader = new FileReader();
reader.onload = function (e) {
$('[id*=Image1]').attr("src", e.target.result).attr("style", "height:100px;width: 100px;");
}
reader.readAsDataURL(file[0]);
} else {
alert(file[0].name + " is not a valid image file.");
return false;
}
});
} else {
alert("This browser does not support HTML5 FileReader.");
}
});
});
</script>
<asp:FileUpload ID="fuUpload" runat="server" />
<hr />
<asp:Image ID="Image1" runat="server" ImageUrl="~/images/no-image-found.png" CssClass=" pull-right" Width="30%" />