Click here to Skip to main content
15,885,435 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Hello,

I am developing asp.net website. Without adding ajax scriptmanegr and update panel my page working properly. But after adding scriptmanager and update panel I found that Page.IsPostBack and ScriptManager1.IsInAsyncPostBack always return false.

Please suggest regarding it.

Thanks in advance
Posted
Comments
[no name] 28-Mar-13 9:46am    
Page.IsPostBack should be false but IsInAsyncPostBack shouldn't be. Do you have <xhtmlconformance mode="Legacy"> in your web.config file.

1 solution

To call postback event , try below

XML
<Triggers>
 <asp:PostBackTrigger ControlID="Button1"  />
 </Triggers>
 </asp:UpdatePanel>


<postbacktrigger> Specifies a control and event that will cause a full page update (a full page refresh). This tag can be used to force a full refresh when a control would otherwise trigger partial rendering.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900