c# - How to preview image before upload on ASP.NET master page content placeholder -


how preview image before upload on asp.net masterpage content placeholder using asp.net controls? prefer automatically displayed after choosing image file upload control.

here's code:

uploadpicture.aspx

<asp:content id="content1" contentplaceholderid="content" runat="server">  <div class="container">     <div class="row">         <div class="col-sm-3">              <asp:fileupload id="fileupload1" runat="server"/>              <asp:image id="image" runat="server"/>              <asp:textbox id="textbox1" runat="server"></asp:textbox>              <asp:button id="upload" runat="server" onclick="upload_click" text="upload" />              <asp:label id="lb_msg" runat="server"></asp:label>          </div>     </div> </div> 

thanks!

the way preview image before actual post server using javascript file api. task not serverside controls. can read here js fileapi.


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -