PDA

Click to See Complete Forum and Search --> : How do you change text box properties?


dietz
Jul 11th, 2002, 02:36 PM
Hi, there.

I am new to ASP and ASP.NET, so my question may be way off base, but if you can help point me in the right direction, it would be greatly appreciated.

Basically, I have an ASP.NET page with a User Control that contains login fields and a submit button. In the click event subroutine for the submit button, if the login is incorrect, I want to make a text box on the ASP.NET page visible and populate its text property. How can I do this?

Thanks.

fredrik
Jul 26th, 2002, 04:36 AM
If you're using a "label"-control:

Label1.Visible = True
Label1.Text = "New Text"


The properties are the same for a textbox-control.