Loading aspx file in Placeholder
-
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
-
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
I've done this before, but now I'm not sure...try rename text.aspx into text.ascx << >>
-
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
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