<div class="control-group"> <label class="control-label" for="inputName"><i class="icon-user"></i>Company Logo</label> <div class="controls"> <input id="BtnImg" type="file" class="uploadfile" name="Photo" onchange="imagepreview(this);" /> <span id="spError1" class="error"></span> <img id="imgprw" src="~/images/profile.jpg" style="width:130px; height:130px" /> </div> </div>
It's seems like there is no definition for the imagepreview function in your JavaScript's code.
imagepreview
script
<script type="text/javascript"> function imagepreview() { // Here comes your function's implementation }</script>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)