enquires@blushmedia.co.uk
 

Find control in Login control

Menu

Requirement to format the look of the username textbox control inside the login control with this was blank on form submission.

ASPX



	



CS page


        TextBox tb = (TextBox)lgnUser.FindControl("UserName");
        tb.BorderColor = System.Drawing.Color.Red;
        tb.BorderStyle = BorderStyle.Solid;
        tb.Focus();