Where should you place Sys.WebForms .PageRequestManager .getInstance() in ASPX page?
If you place Sys.WebForms.PageRequestManager.getInstance() in certain areas of ASPX page you may get an error.
Especially when you are using ScriptManager or UpdatePanel, you will have to call ASP.NET AJAX before loading PageRequestManager.
The following code shows where I placed the script. As for now, it is functioning fine.
<asp:ScriptManager ID="scriptManager" runat="server" >
var Instance = Sys.WebForms.PageRequestManager.getInstance();
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
Hi I'm KoReKuRai, which means 'About this much' in Japanese. Living in Kanagawa prefecture located near Tokyo, Japan. I'm an IT engineer working mostly at non-domestic companies for over 12 years, now spending much time with my 2 year old son. This blog is all about business work style, job transfer, interview, travel, business trips, site development, programming, childcare, health from a Japanese perspective. Ignore my Japanese English and hope you feel interested. You can contact me at here
. Thanks for your attention.
Copyright 2017 KoReKuRai All rights reserved.