Find a Nested Web Control within a Web Control with C#

November 20th, 2008
I was having issues accessing a web control directly within a user control and used the following to access the web control within a LoginView in the User Control. The same syntax below can be used if you are looking for a nested control within a control. System.Web.UI.WebControls.Literal name_literal = (System.Web.UI.WebControls.Literal)this.LoginView1.FindControl("name"); name_literal.Text = "Text goes here"; [...]
Read more on Find a Nested Web Control within a Web Control with C# »