<form id="Form1" method="post" runat="server">
<uc1:PageHeaderDisplay id="pageHeaderDisplay1" runat="server"></uc1:PageHeaderDisplay>
<asp:HiddenField runat="server" ID="postedFormData" />
<div style="display: none;" class="uploadxmlcontainer">
Upload XML: <asp:FileUpload runat="server" ID="fileUpload" onChange="$('.uploadFile').click();" /><asp:Button runat="server" CssClass="uploadFile" Text="Upload" OnClick="UploadFile" style="display: none;" />
</div>
I have a fileupload control inside the original asp.net webforms form. What would be the easiest way to implement a non-postback solution? My problem is that when the user, for example, add some table rows using jquery -> uploads a file = the rows dissapear because of the postback.
Can i use a plugin like ajaxforms for asp.net webforms? Or can you make an iframe that posts to the main page? Im looking for a simple solution, if possible 🙂
Any help is much appreciated! Thanks
I thing you can use Qjuery plungin as uploadify (flash upload control) with Ajax
It is simple:
Download plugin from http://www.uploadify.com/download/
Add to HTML
More details: http://www.uploadify.com/documentation/