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. innerHTML for ASCX

innerHTML for ASCX

Scheduled Pinned Locked Moved ASP.NET
comhelpquestion
1 Posts 1 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.
  • J Offline
    J Offline
    Jon G
    wrote on last edited by
    #1

    I have been trying to figure this problem out for a bit, so here is the situation. I have two ASCX files, that I have created. The first ASCX file is inserted onto my main web page. The second ASCX file is inserted into the first ASCX file. (when I say inserted, I mean the object is created within the page) Now, I need to figure out a way to access the second ASCX file in order to change some text contained inside it. I’m able to do the following if the code exists outside the ASCX files: Document.all[“Tag Name”].innerHTML = “Text to display” The above code will change the text of anything with an ID of “Tag Name” to “Text to display” Although, when I use this, the ASCX user forms do not seem to be affected, even with the proper ID tags. Can anyone explain to me how I would go about doing this including the ASCX panes? (Document.all[“Tag Name”].innerHTML = “Text to display” ) Jon G www.Gizmocoder.com

    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