Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to pass value user control to user control

How to pass value user control to user control

Scheduled Pinned Locked Moved ASP.NET
questionwinformstutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    praveenkumar_mca
    wrote on last edited by
    #1

    Hi All, I have two web user controls on the same web form. When I click a button from one user control, I want to pass a message to the second user control and display it. How can I do it? How can I notify one user control of changes in another user control on the same web form? Thanks.

    Praveen Kumar.R

    M M 2 Replies Last reply
    0
    • P praveenkumar_mca

      Hi All, I have two web user controls on the same web form. When I click a button from one user control, I want to pass a message to the second user control and display it. How can I do it? How can I notify one user control of changes in another user control on the same web form? Thanks.

      Praveen Kumar.R

      M Offline
      M Offline
      meghamaharshi
      wrote on last edited by
      #2

      define property in user control and then pass value in webusercontrol tag that appears on the webform in tag u will find that defined property

      1 Reply Last reply
      0
      • P praveenkumar_mca

        Hi All, I have two web user controls on the same web form. When I click a button from one user control, I want to pass a message to the second user control and display it. How can I do it? How can I notify one user control of changes in another user control on the same web form? Thanks.

        Praveen Kumar.R

        M Offline
        M Offline
        Member 4382232
        wrote on last edited by
        #3

        Just an idea, but maybe you can raise an event in the first user control, handle it in the aspx page and then set a property or execute a method in the second user control from within the eventhandler in the aspx page

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups