Click here to Skip to main content
15,892,809 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi !

I have a project in ASP.Net(C#). I have a Master Page with a Menu. When I click on the Menu Item and Redirect to other page , happened PostBack for Master Page .

How to solve this problem .

Thanks .
Posted

1 solution

That's how master pages work. The master page is injected as a wrapper around the content page, but the combination of master+content is executed as a single page so both master page and child page have the full page lifecycle, including postback events, every time a content page is requested.

Master\child pages are not like frames where the master only loads once and remains static while only the content page changes.
 
Share this answer
 
v2

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