Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: .NET2.0 C# Ajax
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 20-Feb-13 3:53am

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 278
1 Maciej Los 205
2 DamithSL 193
3 Nguyen.H.H.Dang 190
4 arvind mepani 187


Advertise | Privacy | Mobile
Web02 | 2.8.140709.1 | Last Updated 20 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid