Is this possible ?
I have a code that does this :
if ((Request.IsAuthenticated == false))
{
LeftPane.Controls.Add(Page.LoadControl("~/_AccessControl.ascx"));
LeftPane.Visible = true;
}
This loads the accesscontrol usercontrol into a cell named "LeftPane".
But now I want to use the same approach to load an "*.aspx" page into
another cell.
The code tells me the error "User control source files must have a .ascx
file extension", so, the same method doesn't work with an aspx file, just
with controls.
How can I do a similar thing but with a page ?
if that not possible, I'll thank any other usefull advise on achieve similar
results.
Regards, 4 1814
iFrame
--
Curt Christianson
Owner/Lead Developer, DF-Software www.Darkfalz.com
"Craig Kenisston" <cr************@hotmail.com> wrote in message
news:OI**************@TK2MSFTNGP09.phx.gbl...
Is this possible ?
I have a code that does this :
if ((Request.IsAuthenticated == false)) { LeftPane.Controls.Add(Page.LoadControl("~/_AccessControl.ascx")); LeftPane.Visible = true; }
This loads the accesscontrol usercontrol into a cell named "LeftPane".
But now I want to use the same approach to load an "*.aspx" page into another cell. The code tells me the error "User control source files must have a .ascx file extension", so, the same method doesn't work with an aspx file, just with controls.
How can I do a similar thing but with a page ?
if that not possible, I'll thank any other usefull advise on achieve
similar results. Regards,
Thanks for your response. I'll investigate on that iFrame.
I've just looked in google groups and found some other similar questions.
Basically I read that developers are usually recluctant to fill the
application with UserControls, but I don't understand exactly what is the
negative effect on that ... Could you explain ?
Regards,
"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl... iFrame
-- Curt Christianson Owner/Lead Developer, DF-Software www.Darkfalz.com
"Craig Kenisston" <cr************@hotmail.com> wrote in message news:OI**************@TK2MSFTNGP09.phx.gbl...
Is this possible ?
I have a code that does this :
if ((Request.IsAuthenticated == false)) { LeftPane.Controls.Add(Page.LoadControl("~/_AccessControl.ascx")); LeftPane.Visible = true; }
This loads the accesscontrol usercontrol into a cell named "LeftPane".
But now I want to use the same approach to load an "*.aspx" page into another cell. The code tells me the error "User control source files must have a .ascx file extension", so, the same method doesn't work with an aspx file,
just with controls.
How can I do a similar thing but with a page ?
if that not possible, I'll thank any other usefull advise on achieve
similar results. Regards,
I use them, don't know what their issues may be
--
Curt Christianson
Owner/Lead Developer, DF-Software www.Darkfalz.com
"Craig Kenisston" <cr************@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl... Thanks for your response. I'll investigate on that iFrame.
I've just looked in google groups and found some other similar questions. Basically I read that developers are usually recluctant to fill the application with UserControls, but I don't understand exactly what is the negative effect on that ... Could you explain ?
Regards,
"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl... iFrame
-- Curt Christianson Owner/Lead Developer, DF-Software www.Darkfalz.com
"Craig Kenisston" <cr************@hotmail.com> wrote in message news:OI**************@TK2MSFTNGP09.phx.gbl...
Is this possible ?
I have a code that does this :
if ((Request.IsAuthenticated == false)) { LeftPane.Controls.Add(Page.LoadControl("~/_AccessControl.ascx")); LeftPane.Visible = true; }
This loads the accesscontrol usercontrol into a cell named "LeftPane".
But now I want to use the same approach to load an "*.aspx" page into another cell. The code tells me the error "User control source files must have a
..ascx file extension", so, the same method doesn't work with an aspx file, just with controls.
How can I do a similar thing but with a page ?
if that not possible, I'll thank any other usefull advise on achieve
similar results. Regards,
"Craig Kenisston" <cr************@hotmail.com> wrote in news:#Kymffy9DHA.1504
@TK2MSFTNGP12.phx.gbl: I've just looked in google groups and found some other similar questions. Basically I read that developers are usually recluctant to fill the application with UserControls, but I don't understand exactly what is the negative effect on that ... Could you explain ?
I think its because of the design time limitations of user controls. Drove us
crazy when making ASP.net demos too.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back" This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Anshul Seth |
last post by:
I have been dealing with the page-break problem for long, and have not
been able to come to a solution.
I am using XSL:FO to generate PDF report for my XML, generating it in
tables.
I want that...
|
by: Rary |
last post by:
I am using XSL:FO to generate PDF report for my XML, generating it in
tables, i want that tables should completely be at one place, if there
is a page break , all the contents of the table should...
|
by: Joseph Ferris |
last post by:
Hello,
I am having an issue with page breaking that I hope someone will be
able to help me with. Still a relative "newbie", and I thought this
might be a good place to find some help. I have a...
|
by: Nathan |
last post by:
Hi,
I seem to having a peculiar problem with the display of odd and even
pages in XSL-FO. Here is a small background of the problem.
My xsl stylesheet mentions my fo:layout-master-set as
...
|
by: Michel |
last post by:
Hi all,
This is my first post, so I am very new at this. I am trying to use
page-number-citation twice in my code, but the second time it just
shows '0'. The output is in pdf format and I am...
|
by: Uthuras |
last post by:
Greetings,
Machine : Pentium IV
Os Windows 2000 server
Product : DB2 UDB Release : 7.2
We are fail to load the following data file format into db2 database
table that has long varchar...
|
by: Jean-François Michaud |
last post by:
Hello all,
I need to generate (SHEET X of Y) in titles for figures contained in a
section (I already generate page A of B at the bottom right of every
page in the document).
Is there a way...
|
by: Jeff User |
last post by:
Hi all
How can I load an existing html file into a table cell for display?
Setting the TableCell.Text to an existing web file path only displays
the path of the file, but not the file itself....
|
by: Ravi Kondamuru |
last post by:
Hi,
I am using a table to create a layout. It basically splits the browser into two. In one of the cell's I would like to load a webpage. How can I do that? Do I have to use something else to create...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
| |