Results 1 to 2 of 2

Thread: reflection - adding/changing label text

  1. #1

    Thread Starter
    Fanatic Member ZeBula8's Avatar
    Join Date
    Oct 2002
    Posts
    548

    reflection - adding/changing label text

    i have a couple of labels that i do not know the names of at compile time.
    i will only know these names at runtime.

    I would like to change the text of these labels at runtime using reflection.

    I am able to use reflection to get at properties and methods, but am having trouble getting at an actual control on the page usch as a Label or a Textbox.

    Thanks in advance.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: reflection - adding/changing label text

    Why not use javascript?

    What is the context of your question, how have you ended up in this scenario?

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