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. Passing parameter from one user control to another user control in an aspx page.

Passing parameter from one user control to another user control in an aspx page.

Scheduled Pinned Locked Moved ASP.NET
questioncsswinforms
2 Posts 2 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.
  • M Offline
    M Offline
    mittalpa
    wrote on last edited by
    #1

    Hi I have two user controls on one aspx page. UC1 has a grid which contains a link button column which user clicks. Based on the value of clicked cell, I need to show some data into UC2. 1. How do I pass data from UC1 to UC2? 2. How do I invoke a function of UC2 from UC1? Please advise. Thanks AJ

    Follow your goals, Means will follow you ---Gandhi---

    D 1 Reply Last reply
    0
    • M mittalpa

      Hi I have two user controls on one aspx page. UC1 has a grid which contains a link button column which user clicks. Based on the value of clicked cell, I need to show some data into UC2. 1. How do I pass data from UC1 to UC2? 2. How do I invoke a function of UC2 from UC1? Please advise. Thanks AJ

      Follow your goals, Means will follow you ---Gandhi---

      D Offline
      D Offline
      dan sh
      wrote on last edited by
      #2

      mittalpa wrote:

      1. How do I pass data from UC1 to UC2?

      You can make use of Session or Delegates here.

      mittalpa wrote:

      2. How do I invoke a function of UC2 from UC1?

      If it is a method needed by both the user controls, place it in a separate class and have it public/internal. Then call it from both the user controls.

      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