J
Jordan Marton
Hi,
I spent the entire weekend struggling to find a suitable tempalte solution
for my site. Yes, user controls were good, but I needed one page that could
control user controls on each adn every page of my site. Unfortuentaly, I
was not able to find a solution to that, and have resorted to loading each
control on each page individually.
However, I was talking to a friend who also designs in .Net, and he came up
with this idea, and I wanted to get some opinions on it.
Instead of having 100 aspx pages and loading user controls into them, have 1
aspx page with a placeholder, and load 100 ascx pages into them when needed.
So default.aspx?page=1 would load page 1.ascx into the placeholder.
default.aspx?page=99 would load page 99 into the placeholder. Therefor, I
would only have one main page to control and keep track of, whereas all
additional pages would be loaded when needed.
Any downsides to this?
Thanks!
I spent the entire weekend struggling to find a suitable tempalte solution
for my site. Yes, user controls were good, but I needed one page that could
control user controls on each adn every page of my site. Unfortuentaly, I
was not able to find a solution to that, and have resorted to loading each
control on each page individually.
However, I was talking to a friend who also designs in .Net, and he came up
with this idea, and I wanted to get some opinions on it.
Instead of having 100 aspx pages and loading user controls into them, have 1
aspx page with a placeholder, and load 100 ascx pages into them when needed.
So default.aspx?page=1 would load page 1.ascx into the placeholder.
default.aspx?page=99 would load page 99 into the placeholder. Therefor, I
would only have one main page to control and keep track of, whereas all
additional pages would be loaded when needed.
Any downsides to this?
Thanks!