Posted on: 7/29/2015 6:17:07 PM | Views : 769

Hello,
I am attempting to upload files using the asp.net fileupload control but website refreshes when postback is issued after has been uploaded. This issue seems to occur when the webpage is a usercontrol (i.e. ascx) but doesn't happen for an aspx. Here's a sample of the code for the aspx page:

<Triggers> <asp:PostBackTrigger ControlID="TabInvoiceManager$tabCompanyInfo$cmdUpdate_Logo" /> </Triggers> </asp:UpdatePanel> The code-behind has the following code, as well:
Page.Form.Attributes.Add("enctype", "multipart/form-data") I've duplicating this method in the UserControl but to no avail. Each time the triggered button is clicked the web site reloads. I've also tried replacing the HTML Triggers to register the postback from code-behind. For instance,
Dim oMgr As ScriptMa ...

Go to the complete details ...