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 the values between the usercontrol

How to pass the values between the usercontrol

Scheduled Pinned Locked Moved ASP.NET
questiondatabasehelptutorial
6 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

    Hello All, I have a query, In my page i have 2 usercontrols, i want to pass values from one usercontrol to another usercontrol. please help me how can i do it? Thanks

    Praveen Kumar.R

    P 1 Reply Last reply
    0
    • P praveenkumar_mca

      Hello All, I have a query, In my page i have 2 usercontrols, i want to pass values from one usercontrol to another usercontrol. please help me how can i do it? Thanks

      Praveen Kumar.R

      P Offline
      P Offline
      pmarfleet
      wrote on last edited by
      #2

      userControl1.MyProperty = userControl2.MyProperty Or something like this...

      Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

      P 1 Reply Last reply
      0
      • P pmarfleet

        userControl1.MyProperty = userControl2.MyProperty Or something like this...

        Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

        P Offline
        P Offline
        praveenkumar_mca
        wrote on last edited by
        #3

        Hi Paul, Sorry i cant get you please explain some brief..

        Praveen Kumar.R

        N 1 Reply Last reply
        0
        • P praveenkumar_mca

          Hi Paul, Sorry i cant get you please explain some brief..

          Praveen Kumar.R

          N Offline
          N Offline
          N a v a n e e t h
          wrote on last edited by
          #4

          praveenkumar_mca wrote:

          Sorry i cant get you please explain some brief..

          He is telling you to create public properties in the user controls and get/set it.

          All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions

          P 1 Reply Last reply
          0
          • N N a v a n e e t h

            praveenkumar_mca wrote:

            Sorry i cant get you please explain some brief..

            He is telling you to create public properties in the user controls and get/set it.

            All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions

            P Offline
            P Offline
            praveenkumar_mca
            wrote on last edited by
            #5

            Yes i created public property in usercontrol. i want to take that value in another user control not in page.

            Praveen Kumar.R

            N 1 Reply Last reply
            0
            • P praveenkumar_mca

              Yes i created public property in usercontrol. i want to take that value in another user control not in page.

              Praveen Kumar.R

              N Offline
              N Offline
              N a v a n e e t h
              wrote on last edited by
              #6

              You probably need to make use of sessions.

              All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions

              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