Find control in loginview
I have a masterpage with a loginview, in the loginview i have an asp login control. i also have a label that is NOT contained in a loginview. How do i access the username textbox control in the asp login control and display the text in a label. Please help! This is my code: Login lg = (Login)LoginView1.FindControl("Login1"); TextBox tb = (TextBox)lg.FindControl("UserName"); Label2.Text = tb.Text; ok this is what i need to do: A complainant can deactivate his account. A manager and technicians accounts are deactivated and if necessary also reactivated by the administrator. the complainant can