How to Detect ASP.Net Asynchronous PostBack and its settings like control and UpdatePanel that caused PostBack and the using PageRequestManager Events in JavaScript and here is an example of what I am doing :
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="up1" runat="server">
<ContentTemplate>
<asp:Button ID="Button1" runat="server" Text="Button" />
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID = "Button1" EventName = "Click" />
</Triggers>
</asp:UpdatePanel>
</form>
<script type="text/javascript">
//////////////
//some javascript code
/////////////
</script>
</body>
</html>
What I want is to use JavaScript to detect this post back.