Click here to Skip to main content
15,443,631 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am doing one website, how to load a new page in the content area, when i click in the left menu item, without postback the master page(whole page), how to write the code.
Posted
Comments
bbirajdar 4-Jul-12 3:32am    
You ask for code.. What efforts have you done ?

An UpdatePanel would work, Just code all the events as if you were following the normal webforms / postback model, and then wrap the UpdatePanel around the appropriate controls.
 
Share this answer
 
Keeping small things aside, in short, you need to wrap your content controls in an Udpate Panel to enable partial rendering of a defined part:
Here you go:
UpdatePanel Control Overview[^]
UpdatePanel control[^]
UpdatePanel Class[^]
All you need to know with sample code is present and explained.


P.S.: You cannot avoid postback. There will be postback but only content part will get refreshed.

In case, you really want to avoid postback, you need to read on PageMethod[^].
 
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