Results 1 to 2 of 2

Thread: How do you change text box properties?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2001
    Posts
    122

    Question How do you change text box properties?

    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.

  2. #2
    Lively Member
    Join Date
    May 2001
    Location
    Falkenberg, Sweden
    Posts
    76
    If you're using a "label"-control:
    Code:
    Label1.Visible = True
    Label1.Text = "New Text"
    The properties are the same for a textbox-control.
    ________________________
    Fredrik Klarqvist

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width