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. Create a property in web user control that can be referenced in Javascript.

Create a property in web user control that can be referenced in Javascript.

Scheduled Pinned Locked Moved ASP.NET
javascriptquestion
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.
  • A Offline
    A Offline
    Ashwani_kumar
    wrote on last edited by
    #1

    I have a web user control. I need to create one property in this control that can be accessed in the main page on client side. How can I achieve this.

    Ashwani

    M J 2 Replies Last reply
    0
    • A Ashwani_kumar

      I have a web user control. I need to create one property in this control that can be accessed in the main page on client side. How can I achieve this.

      Ashwani

      M Offline
      M Offline
      Michael Sync
      wrote on last edited by
      #2

      Normally, It is not possible... I think you probably need to use the third-party Ajax frameworks (e.g: AjaxPro and etc)...

      Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

      1 Reply Last reply
      0
      • A Ashwani_kumar

        I have a web user control. I need to create one property in this control that can be accessed in the main page on client side. How can I achieve this.

        Ashwani

        J Offline
        J Offline
        John ph
        wrote on last edited by
        #3

        use a Hidden Field on the web-user control. you can access it on the client-side.

        - Regards -
           JON


        Life is not measured by the amount of breaths we take, but by the moments that take our breath away.


        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