Click here to Skip to main content
12,634,888 members (29,107 online)
Rate this:
Please Sign up or sign in to vote.
See more: .NET2.0 C# .NET 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.

Posted 20-Feb-13 4:53am

1 solution

Rate this: bad
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.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100