I am working in ASP.net with .Net Framework 2.0 and VS 2008 Team System
I have a master page page and n number of content pages. On the master page i have put a ScriptManager tag and on content page I have an UpdatePanel. But whenever and event like button click is fired form the content page, whole page is post backed. How do i solve this?
It will depend on how you have set up your UpdatePanel.
The key things to look at are:
UpdateModeproperty of the UpdatePanelChildrenAsTriggersproperty of the UpdatePanelFor example, if you just want the panel to be updated on a single button press go for:
UpdateMode=ConditionalChildrenAsTriggers=FalseOr if you want all controls within the panel to trigger a partial postback then just set
ChildrenAsTriggers=Trueand don’t use the Triggers collection.This MSDN article describes the above properties in more detail.