Set Property Value on Master Page from Content Page

后端 未结 5 1264
广开言路
广开言路 2020-12-31 14:13

I need to pass data to a variable in my master page each time a page is loaded.

I have a string[] of RequiredRoles that I set on each content page defining what role

5条回答
  •  半阙折子戏
    2020-12-31 14:56

    CType(Master.FindControl("lblName"), Label).Text = txtId.Text CType(Master.FindControl("pnlLoginned"), Panel).Visible = True

提交回复
热议问题