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. Loading aspx file in Placeholder

Loading aspx file in Placeholder

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelp
3 Posts 3 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
    Akhilesh Yadav
    wrote on last edited by
    #1

    Hi All, I'm want to create dynamic page in asp.net using VS2003. For this I created an aspx file with one placeholder. Now I want to load the aspx file dynamcially thru code. Till now I've found Placeholder1.Page.LoadControl("text.aspx") But it is not working. Please help.

    -Akki

    E R 2 Replies Last reply
    0
    • A Akhilesh Yadav

      Hi All, I'm want to create dynamic page in asp.net using VS2003. For this I created an aspx file with one placeholder. Now I want to load the aspx file dynamcially thru code. Till now I've found Placeholder1.Page.LoadControl("text.aspx") But it is not working. Please help.

      -Akki

      E Offline
      E Offline
      enjoycrack
      wrote on last edited by
      #2

      I've done this before, but now I'm not sure...try rename text.aspx into text.ascx << >>

      8x Solutions Ltd

      1 Reply Last reply
      0
      • A Akhilesh Yadav

        Hi All, I'm want to create dynamic page in asp.net using VS2003. For this I created an aspx file with one placeholder. Now I want to load the aspx file dynamcially thru code. Till now I've found Placeholder1.Page.LoadControl("text.aspx") But it is not working. Please help.

        -Akki

        R Offline
        R Offline
        RichardGrimmer
        wrote on last edited by
        #3

        Akhilesh Yadav wrote:

        LoadControl

        There's your clue....placeholders are intended to be used to display UserConrols (ascx's).... As mentioned below, ytou can sometimes get away with just changing the extension, but really, you should code it up as a control - it's not difficult, and most of what you already have can be just pasted straight in...

        "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox

        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