开发者

Master Page and Child Page concept!

开发者 https://www.devze.com 2023-01-09 19:44 出处:网络
I have a aspx web page. if i change something in the page and when it refreshes , d开发者_运维知识库oes it load just the child page or even the master page?? What function one should use to refresh Ma

I have a aspx web page. if i change something in the page and when it refreshes , d开发者_运维知识库oes it load just the child page or even the master page?? What function one should use to refresh Master page as well!! I hope i am clear!!! Thanks guys!


The Page_Load of the child page will fire first followed by Page_Load of the masterpage. You may find this slightly counter intuitive. I know I did!

If you are relying on something in your master page being accessible from the code-behind in your child page you should reference it later eg in the Page_PreRender event of the child page.

Master page should always refresh. Not sure what you are experiencing?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号