开发者

View state is not getting in the Page PreInit event

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜