开发者

View state is not getting in the Page PreInit event

开发者 https://www.devze.com 2022-12-29 23:33 出处:网络
Hii,, I need a help. I have a master page and i am changing the masterpage file property to some other master page dynamically in the page PreInit event and that changing url is开发者_Go百科 taken fr

Hii,,

I need a help. I have a master page and i am changing the masterpage file property to some other master page dynamically in the page PreInit event and that changing url is开发者_Go百科 taken from a viewstate. but the view state is not getting in the pre init event. If you finding any solution regarding this pls help me....


The viewstate is not available in the PreInit event. You'll need to use something else, such as URL parameters to determine which master page to use. It's better to have separate URLs for different views anyways.


try this: session("somename") ?

0

精彩评论

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