I have the following code,
<input id="txtUpload" type="file" runat="server" />
<input id="btnPreview" type="button" value="Preview"
OnServerClick="Preview" runat="server" /><br />
<asp:Label id="lblMessage" runat="server" /></p><br />
<asp:Image id="myImage" ImageUrl="c:\abc.png" runat="server" />
Sub Preview(s as object, e as eventargs)
dim strFile as string
strFile = strFile
I want to select an image file using the input file control, as soon as the file is selected, I want it to view it in the Image Control. How can I do it ? Now by clicking the button control and calling the sub preview I am able to view the file but then file control looses the focus on the file. Is there any attribute of the File Control or Image Control for showing the image file in the Image control ?