Using FindControl() to find control

前端 未结 5 2184
广开言路
广开言路 2021-01-04 06:17

I have a Literal control that I am trying to locate so I can insert text into it. I have a Master page that contains several content placeholders.



        
5条回答
  •  梦毁少年i
    2021-01-04 07:08

    I think you have to do this, but I don't have my code to double-check right now:

    Page.Master.FindControl("MainLinks").FindControl("litNavLinks");
    

提交回复
热议问题