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. User defined controls

User defined controls

Scheduled Pinned Locked Moved ASP.NET
question
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.
  • W Offline
    W Offline
    waheed awan
    wrote on last edited by
    #1

    i have nade a controll (user controll) which contains two textboxes and a button i have draged it on a web page (page1) in the click event of button of the user control i have redirected it to page2 i am getting values of all the controlls other than those in the user control how can i get the values of the two text boxes of the self defined controll thanx

    M 1 Reply Last reply
    0
    • W waheed awan

      i have nade a controll (user controll) which contains two textboxes and a button i have draged it on a web page (page1) in the click event of button of the user control i have redirected it to page2 i am getting values of all the controlls other than those in the user control how can i get the values of the two text boxes of the self defined controll thanx

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

      You should create two public properties or methods for accessing those textboxes in User Control. then, it will be more easier to access those values from UI developer's side..

      Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you. :)

      W 1 Reply Last reply
      0
      • M Michael Sync

        You should create two public properties or methods for accessing those textboxes in User Control. then, it will be more easier to access those values from UI developer's side..

        Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you. :)

        W Offline
        W Offline
        waheed awan
        wrote on last edited by
        #3

        i am not getting the user defined controll when i use ASP.usercontroll cont=(ASP.usercontroll)PreviousPage.FindControl("usercontroll"); i get the exception refrnce not set to an instance of an object

        M 1 Reply Last reply
        0
        • W waheed awan

          i am not getting the user defined controll when i use ASP.usercontroll cont=(ASP.usercontroll)PreviousPage.FindControl("usercontroll"); i get the exception refrnce not set to an instance of an object

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

          Are you the one who create this user-defined control? (Are you a component developer or UI developer?)

          Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you. :)

          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