c# - UpdatePanel doesnt work as intended for file upload control -
When I click on Attach button, it adds a new line to the grid with the posted file name. But also due to the refresh of its entire page, such as UpdatePanel is not present, I have to update the gridview. Why should this file be with upload controls? UpdatePanel works on the page as desired for other controls / grids.
I have no knowledge on jquery, so it is only to work with C #. Any suggestions
& asp: updatepanel runat = "server" updatemode = "conditional" & gt; & Lt; Runs & gt; & Lt; Asp: postbacktrigger controlid = "btnAttach" /> & Lt; / Runs & gt; & Lt; Contenttemplate & gt; & Lt; Asp: gridview ..... /> & Lt; Asp: fileupload id = "fup" runat = "server" & gt; & Lt; ASP: Button ID = "BTN Etch" text = "run" = "server />
I suggest you use the AJAX asyncFileUploader
This will help you with no postback and without jquery it uses plain javascript and its easy example also includes
Comments
Post a Comment