SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Feb 2014
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to change user control label text from a page?

    Hello

    i've created a user control that contains a label and button.
    then i created a web page ... i put the User control in this page
    how i could change the label text from the page?
    i think i have to create a method? how and where i should create it.?
    Thanks in advance!

  2. #2
    SitePoint Mentor NightStalker-DNS's Avatar
    Join Date
    Jul 2004
    Location
    Cape Town, South Africa
    Posts
    2,880
    Mentioned
    48 Post(s)
    Tagged
    0 Thread(s)
    Hi

    You would need to create the method on the control itself. Then call that method from the codebehind on your webpage by referencing the control by it's ID


Bookmarks

Posting Permissions

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