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. Can I get the control in the control

Can I get the control in the control

Scheduled Pinned Locked Moved ASP.NET
csharp
5 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.
  • H Offline
    H Offline
    hurrem
    wrote on last edited by
    #1

    I mean, I did like this: I put DataList inside the DetailsView, and there is an Image controol inside the Data list, I need to get that Image to change its' ImageURL property from the C# Code file. I tried this: DataList ImagesDataList = (DataList)DetailsView1.FindControl("DataList1"); Image ImageControl = (Image)ImagesDataList.FindControl("ImageControl"); But it doesn't work. thx

    I 1 Reply Last reply
    0
    • H hurrem

      I mean, I did like this: I put DataList inside the DetailsView, and there is an Image controol inside the Data list, I need to get that Image to change its' ImageURL property from the C# Code file. I tried this: DataList ImagesDataList = (DataList)DetailsView1.FindControl("DataList1"); Image ImageControl = (Image)ImagesDataList.FindControl("ImageControl"); But it doesn't work. thx

      I Offline
      I Offline
      Imran Khan Pathan
      wrote on last edited by
      #2

      Yes U can get. what error r u getting here? Best Regard Pathan

      ---------------------------------------------------

      H 1 Reply Last reply
      0
      • I Imran Khan Pathan

        Yes U can get. what error r u getting here? Best Regard Pathan

        ---------------------------------------------------

        H Offline
        H Offline
        hurrem
        wrote on last edited by
        #3

        It just doesn't find Image control, when I'm debugging it, it just shows me NULL.

        I 1 Reply Last reply
        0
        • H hurrem

          It just doesn't find Image control, when I'm debugging it, it just shows me NULL.

          I Offline
          I Offline
          Imran Khan Pathan
          wrote on last edited by
          #4

          U need to bind Datalist first. best regard Pathan

          ---------------------------------------------------

          H 1 Reply Last reply
          0
          • I Imran Khan Pathan

            U need to bind Datalist first. best regard Pathan

            ---------------------------------------------------

            H Offline
            H Offline
            hurrem
            wrote on last edited by
            #5

            Bind? What is that? 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