Hi all,
I`ve a contact form(J-Query) and in this form the user can upload a profile picture. when the user uploads his profile picture with the asp.net upload control a java script is executed so the user can see the picture in a image control.
Now is the problem that when the user safe`s the contact form, there is no file in the fileupload control(The file path is visible...(FileUpload1.HasFile = false))
Can somebody help me to keep te file in the fileupload after the javascript has been executed?
function previewImage() {
var fileUpload = document.getElementById("FileUpload1");
var img = document.getElementById("Image1");
img.src = fileUpload.value;
}
<td><asp:Image ID="Image1" runat="server" Width="70" Height="70" /></td>
<td><asp:FileUpload ID="FileUpload1" runat="server" onchange="previewImage()" /></td>
I need the to store the image in a databa ...
Go to the complete details ...