473,325 Members | 2,860 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

loading and dumping controls dynamically

I'm strongly considering abandoning the one-physical-file-per-page model and
going with an arcitecture that simply loads content from classes
dynamically. There will be only one page that a user will go to, and all
variation from navigation will come from AJAX calls to load and replace
content in a main frame.

.... so my concern with this is, perhaps the browsers will leak memory or do
something obscurely wierd with enough loading and unloading of controls
client side. Has anyone else tried this approach, have any warnings to share
about doing things this way?

Paul
Mar 13 '07 #1
5 1331
"news.microsoft.com" <no***@nowhere.netwrote in message
news:Og**************@TK2MSFTNGP03.phx.gbl...
I'm strongly considering abandoning the one-physical-file-per-page model
and going with an arcitecture that simply loads content from classes
dynamically. There will be only one page that a user will go to, and all
variation from navigation will come from AJAX calls to load and replace
content in a main frame.

... so my concern with this is, perhaps the browsers will leak memory or
do something obscurely wierd with enough loading and unloading of controls
client side. Has anyone else tried this approach, have any warnings to
share about doing things this way?
I guess the first question is: why...?
Mar 13 '07 #2

Leaks will be the problem even if you have more than one page. If leaks
happens then it will stay there even if you navigate to other page. Until
you close browser.

Here is why it's not the best choice to have single page (url)

1. People like to put pages into their favorites.
2. People like to send links.
3. People like to hit back button
with 100% AJAXyfing application you will prevent people from using every
feature they got accustomed to.
It will be a shooting yourself if it's an Internet application. More
tolerable if it's Intranet application.

I can tell from experience that even pure ASP.NET with their only POST way
of submitting the form is a big problem in Internet application. My
customers simply do not like that when they click "Back" button they get "Do
you want to resubmit data" warning from IE.

Just stick with a reasonable mix of AJAX and regular ASP.NET development.


George.
"news.microsoft.com" <no***@nowhere.netwrote in message
news:Og**************@TK2MSFTNGP03.phx.gbl...
I'm strongly considering abandoning the one-physical-file-per-page model
and going with an arcitecture that simply loads content from classes
dynamically. There will be only one page that a user will go to, and all
variation from navigation will come from AJAX calls to load and replace
content in a main frame.

... so my concern with this is, perhaps the browsers will leak memory or
do something obscurely wierd with enough loading and unloading of controls
client side. Has anyone else tried this approach, have any warnings to
share about doing things this way?

Paul

Mar 13 '07 #3
PJ6
I would disagree with 1 and 2 for an application requiring login /
authentication for the whole site. You're not going to be able to go back to
the place you were a day later using a link, and you won't be able to share
that location with others, either.

I agree, though, about the BACK button.

Thanks for your take on memory leaking. Looking at it that way, I probably
won't worry about it.

Paul

"George Ter-Saakov" <gt****@cardone.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>
Leaks will be the problem even if you have more than one page. If leaks
happens then it will stay there even if you navigate to other page. Until
you close browser.

Here is why it's not the best choice to have single page (url)

1. People like to put pages into their favorites.
2. People like to send links.
3. People like to hit back button
with 100% AJAXyfing application you will prevent people from using every
feature they got accustomed to.
It will be a shooting yourself if it's an Internet application. More
tolerable if it's Intranet application.

I can tell from experience that even pure ASP.NET with their only POST way
of submitting the form is a big problem in Internet application. My
customers simply do not like that when they click "Back" button they get
"Do you want to resubmit data" warning from IE.

Just stick with a reasonable mix of AJAX and regular ASP.NET development.


George.
"news.microsoft.com" <no***@nowhere.netwrote in message
news:Og**************@TK2MSFTNGP03.phx.gbl...
>I'm strongly considering abandoning the one-physical-file-per-page model
and going with an arcitecture that simply loads content from classes
dynamically. There will be only one page that a user will go to, and all
variation from navigation will come from AJAX calls to load and replace
content in a main frame.

... so my concern with this is, perhaps the browsers will leak memory or
do something obscurely wierd with enough loading and unloading of
controls client side. Has anyone else tried this approach, have any
warnings to share about doing things this way?

Paul


Mar 13 '07 #4
PJ6
"Mark Rae" <ma**@markNOSPAMrae.comwrote in message
news:uT**************@TK2MSFTNGP02.phx.gbl...
I guess the first question is: why...?
One file per page may work well for anyone who wants to bang out HTML for a
run of the mill website, but for "applications" this is poor design because
it breaks the abstraction layer between the UI runtime and the physical file
system.

My web apps are typically rendered purely through the object model (compiled
code), and all text content is read from a database; there is very little
pre-rendered HTML or javascript. From an application standpoint, especially
a large one, this approach is so, so much more maintainable, and the
performance is also stunningly better. My move to get rid of page file
references completely will be my attempt to express this design pattern in
its purest form.

Paul
Mar 14 '07 #5
"PJ6" <no***@nowhere.netwrote in message
news:OW**************@TK2MSFTNGP04.phx.gbl...
One file per page may work well for anyone who wants to bang out HTML for
a run of the mill website, but for "applications" this is poor design
because it breaks the abstraction layer between the UI runtime and the
physical file system.
??? How on earth does it do that...???
My web apps are typically rendered purely through the object model
(compiled code), and all text content is read from a database; there is
very little pre-rendered HTML or javascript. From an application
standpoint, especially a large one, this approach is so, so much more
maintainable, and the performance is also stunningly better. My move to
get rid of page file references completely will be my attempt to express
this design pattern in its purest form.
Best of luck, then...
Mar 14 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: John | last post by:
Hi all, I'm having a little problem understanding the concepts of dynamically loading/unloading user conrols: 1. If I have a couple of usercontrols embedded within a few tables cells on my...
1
by: Sundaresan | last post by:
I've a form where I load two user controls dynamically. User Control-1 has a no.of dropdowns and based on the selection I typically populate a datagrid in the user control-2, Also the I could...
1
by: John Cosmas | last post by:
I've got a page which loads up a different user control into a placeholder control every time a button is clicked on the parent page. I use a statement like...
1
by: kanones | last post by:
Hi - I am seeing some performance degradation when I am loading a control dynamically onto a page with multiple other dynamical controls using Page.LoadControl versus dragging and dropping it...
4
by: Harry | last post by:
Hello, I have a page with a RadioButtonList and a PlaceHolder control. The RadioButtonList's AutoPostBack attribute is set to TRUE and its SelectedIndexChanged event loads one of three...
2
by: Dave A | last post by:
I just don't get this... If I need to dynamically load controls into a web page I simply need to go PlaceHolder1.Controls.Add(new Button()); or similar. However when I need to dynamically...
3
by: supvine | last post by:
Hello, I am developing a page that has several custom web user controls that need to be loaded dynamically. Some of the controls are loaded based on the action (button-click) of a different...
2
by: nemesis.saurabh | last post by:
hi, Can we dynamically load a user control in the web form. problem i am facing is i have 2 user controls: uc1 and uc2. when my page is loading the functions and variables in the uc1 is...
1
by: Bob Rock | last post by:
Hello, I'm new to ASP.NET and I've been looking into the topic of dynamically loading (typically accomplished with a LoadControl followed by a MyControl.Controls.Add()) both user controls and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.