Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi all,

I am building a small web-application using AJAX and C#.
There are some 10 different forms/windows in this project. My basic idea is, there is gonna be one main window and I'll open other windows from within that main window.

I am trying to implement AJAX into this, using most of the AJAX controls from the AJAX control toolkit (like, CollapsiblePanel, ModalPopup, RoundedCorners etc.)

I created 10 different pages. Though I wanted to open new windows from within main window, I can invoke different pages as pop-up and do the work.
But if I am using AJAX all, the different pages has to be "AJAX Panel" and should be there on the main page only if I want to use ModalPopup tool, for instance. And I have to create all those different pages as AJAX panel in one main page only.

My question is, Isn't that going to make that page load slower, because the content of all the 10 pages is on 1 page now.


Can you please throw some light over this and guide me.
I hope I made myself clear. Please pardon my English.


Thanks,
Deepak
Posted

1 solution

You told you develop 10 different page and 1 Main Page. From that mainpage you ondemand load that page. I guess you use ModalPopupExtender with iframe. If so they are different and not load their page with main page. They will render on demand and when close your popup then they will destroy. But in that way page to page communication with ajax way will be difficult.

Another approach may be you have 10 different asp panel(div or it might be user controls) and all are inside MainWindow. You just show hide that on demand and take ajax benefit. If so then of course it will delay Main Page render because Main Window already became bulky for including that asp panels inside. But think that the benefits.
You can easily communicate(add/update/remove/show/hide) MainPage with asp Panels very easily and quickly. Because when page is rendered then all panels content also render. Think like any caching implementation. When cache is loaded it will slow down the process but once loaded it will provide performance benefit. So you will take decisions based on requirement, benefit and loss etc consideration.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900