---
title: "How to force button do a full postback instead of asynchronous postback"  
description: "How to force button do a full postback instead of asynchronous postback"  
author: "Anonymous User"  
published: 2014-08-28  
updated: 2014-08-28  
canonical: https://www.mindstick.com/forum/2189/how-to-force-button-do-a-full-postback-instead-of-asynchronous-postback  
category: "c#"  
tags: ["c#", "asynchronous postback", "force button do a full postback", "html5 tags", "force button do a full postback instead of asynchronous postback"]  
reading_time: 1 minute  

---

# How to force button do a full postback instead of asynchronous postback

In an [ASP.NET](https://www.mindstick.com/articles/934/default-folders-available-inside-the-asp-dot-net-application-folder) 4.0 [web application](https://www.mindstick.com/articles/13069/progressive-web-application-pwas-all-you-need-to-know-about), I have a [user control](https://www.mindstick.com/forum/294/problem-in-access-the-control-inside-the-user-control) that is wrapped by an [UpdatePanel](https://www.mindstick.com/articles/151/asp-dot-net-ajax-server-control-updateprogress-updatepanel)

<asp:UpdatePanel ID="UpdatePanel5" runat="server" UpdateMode="Conditional">

<ContentTemplate>

<UC:MyCustomCtrl ID="customCtrl" runat="server" />

</ContentTemplate>

</asp:UpdatePanel>

I have an ASP.NET button in the user control that makes an asychronous [request](https://www.mindstick.com/blog/255/post-get-and-request-function-in-php) to the server

The server then creates an Excel [spreadsheet](https://answers.mindstick.com/qa/31730/explain-spreadsheet-and-its-basics) and then places the spreadsheet in the HttpResponse to send back to the client's [browser](https://www.mindstick.com/blog/155254/which-is-the-best-internet-browser) so they can open/save it.

However, it blows up at this point because the request to the server is [asynchronous](https://www.mindstick.com/blog/178/synchronous-and-asynchronous-command-execution-in-c-sharp-dot-net) and apparently you can't put a binary in the HttpResponse during an asynchronous request.

How do I get around this?

## Replies

### Reply by Sumit Kesarwani

Hi Ankita,

you can add triggers to UpdatePanels that allow full post back. here's an example

```
<asp:UpdatePanel ID="UpdatePanel5" runat="server" UpdateMode="Conditional">   
<ContentTemplate>       
<UC:MyCustomCtrl ID="customCtrl" runat="server"/>   
</ContentTemplate>    <Triggers>       
<asp:PostBackTrigger ControlID="btnID" />    </Triggers></asp:UpdatePanel>
```


---

Original Source: https://www.mindstick.com/forum/2189/how-to-force-button-do-a-full-postback-instead-of-asynchronous-postback

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
