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 can i set user-defined property which is defined in user control i want to access in javascript in aspx page.

How can i set user-defined property which is defined in user control i want to access in javascript in aspx page.

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

    I have defined one control in C# usercontrol.cs Inside that control i have defined one property which is "dropdownwidth". Now i want to set that property in javascript which defined in my .aspx page. So can you please tell me how it possible? Thank you.

    Anish Patel

    M 1 Reply Last reply
    0
    • A anish27patel

      I have defined one control in C# usercontrol.cs Inside that control i have defined one property which is "dropdownwidth". Now i want to set that property in javascript which defined in my .aspx page. So can you please tell me how it possible? Thank you.

      Anish Patel

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

      look up the "Hiddenfield" property this will help u much http://www.asp.net/learn/Videos/video-275.aspx[^] this video tutorial is extra great enjoy it ;)

      A 1 Reply Last reply
      0
      • M MiDo_RoMa

        look up the "Hiddenfield" property this will help u much http://www.asp.net/learn/Videos/video-275.aspx[^] this video tutorial is extra great enjoy it ;)

        A Offline
        A Offline
        anish27patel
        wrote on last edited by
        #3

        But property is defined in user control not getting in javascript. so how can i access in javascript. Thanks,

        Anish Patel

        M 1 Reply Last reply
        0
        • A anish27patel

          But property is defined in user control not getting in javascript. so how can i access in javascript. Thanks,

          Anish Patel

          M Offline
          M Offline
          MiDo_RoMa
          wrote on last edited by
          #4

          if i really understand ur problem i think this link will help u http://www.developerfusion.com/forum/thread/53365/[^] check the 4th & the 5th posts from the bottom i think it is the same as ur problem & its answer

          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