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. Find Control

Find Control

Scheduled Pinned Locked Moved ASP.NET
databasehelp
3 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
    Assaf82
    wrote on last edited by
    #1

    Hello I work with a master page and content page i try to find a Button in my content page, where i want to write my code behind because i get the ID of this Button from the database so any help will be greatly appreciated Thanks in advance

    Assaf

    S 1 Reply Last reply
    0
    • A Assaf82

      Hello I work with a master page and content page i try to find a Button in my content page, where i want to write my code behind because i get the ID of this Button from the database so any help will be greatly appreciated Thanks in advance

      Assaf

      S Offline
      S Offline
      saini arun
      wrote on last edited by
      #2

      Where is the control located which you are trying to find... In master or in content page...? In case, the control is located in master page then use Button btn = Master.FindControl("") as Button; replace with the id of the button fetched from database.

      A 1 Reply Last reply
      0
      • S saini arun

        Where is the control located which you are trying to find... In master or in content page...? In case, the control is located in master page then use Button btn = Master.FindControl("") as Button; replace with the id of the button fetched from database.

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

        the control is located in content page Thanks in advance

        Assaf

        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