K
Kristoffer Arfvidson
Ok, so a new question...
Im building my page as dynamic as I can...
meaning that I have basicly one aspx page that controls everything...
so, I solved this by sending different variables to the page depending on
where i want to go, eg. www.myserver.com/gotopage.aspx?page=mainpage
ok, so, on this gotopage.aspx
I have used a lot of usercontrols to show the defferent contents of my pages
(to keep the design at one place and the code in other places...)
So to my question...
If I use:
<%@ Register TagPrefix="uc1" TagName="bottom_info_inc"
Src="blabla/bottom_info_inc.ascx" %>
<%@ Register TagPrefix="uc1" TagName="bottom2_info_inc"
Src="blabla/bottom2_info_inc.ascx" %>
<%@ Register TagPrefix="uc1" TagName="bottom3_info_inc"
Src="blabla/bottom3_info_inc.ascx" %>
<%@ Register TagPrefix="uc1" TagName="bottom4_info_inc"
Src="blabla/bottom4_info_inc.ascx" %>
<%@ Register TagPrefix="uc1" TagName="bottom5_info_inc"
Src="blabla/bottom5_info_inc.ascx" %>
<%@ Register TagPrefix="uc1" TagName="bottom6_info_inc"
Src="blabla/bottom6_info_inc.ascx" %>
and so on on my page, and then in the code control witch control should be
used, does this mean that the page is loading the content of each control
everytime a user accesses my page?
or does it only load the control when the code specifies that that control
should be viewed???
so, is it better to just use placeholders, and make the control load
entirely in the code? or???
Yours: Kristoffer
Im building my page as dynamic as I can...
meaning that I have basicly one aspx page that controls everything...
so, I solved this by sending different variables to the page depending on
where i want to go, eg. www.myserver.com/gotopage.aspx?page=mainpage
ok, so, on this gotopage.aspx
I have used a lot of usercontrols to show the defferent contents of my pages
(to keep the design at one place and the code in other places...)
So to my question...
If I use:
<%@ Register TagPrefix="uc1" TagName="bottom_info_inc"
Src="blabla/bottom_info_inc.ascx" %>
<%@ Register TagPrefix="uc1" TagName="bottom2_info_inc"
Src="blabla/bottom2_info_inc.ascx" %>
<%@ Register TagPrefix="uc1" TagName="bottom3_info_inc"
Src="blabla/bottom3_info_inc.ascx" %>
<%@ Register TagPrefix="uc1" TagName="bottom4_info_inc"
Src="blabla/bottom4_info_inc.ascx" %>
<%@ Register TagPrefix="uc1" TagName="bottom5_info_inc"
Src="blabla/bottom5_info_inc.ascx" %>
<%@ Register TagPrefix="uc1" TagName="bottom6_info_inc"
Src="blabla/bottom6_info_inc.ascx" %>
and so on on my page, and then in the code control witch control should be
used, does this mean that the page is loading the content of each control
everytime a user accesses my page?
or does it only load the control when the code specifies that that control
should be viewed???
so, is it better to just use placeholders, and make the control load
entirely in the code? or???
Yours: Kristoffer