Last post Nov 05, 2014 04:08 AM by francesco abbruzzese
Nov 04, 2014 04:54 PM|sun21170|LINK
Is SPA only made up of a single page?
I mean, are all functions within a big web app all included within a single page, OR there could be multiple pages when using SPA for a web app?
Nov 04, 2014 05:18 PM|Mikesdotnetting|LINK
The UI should only occupy a single page. Business Logic, Data Access etc should be separate.
Nov 04, 2014 05:32 PM|sun21170|LINK
That sounds like too much when creating an enterprise web app. What is the benefit of putting everything into a single page?
Normally,when I build an ASP.Net app its made up of multiples aspx pages, with each function being mapped to a page. For example, an ASP.Net Webforms app has a Customer.aspx page for managing customers, a Supplier.aspx page for managing suppliers and an
Order.aspx page for managing orders. If the same app was written as a SPA there will be just one page for Customer management, Supplier management and Order management.
If that is true, I don't see the benefit of putting all functions of a large enterprise web app into a single page. There could so many functions to include within a single page.
Maintaining such a page would not be easy unless the page only had very few functions.
Nov 04, 2014 06:45 PM|jsiahaan|LINK
The main part of SPA is the framework is on the client side. We can get a lot of benefit when the viewmodel on the client, asynchronous. Refresh from server side can be minimize.
We can find the best answer from forum and our experiences. I'm sure that if you try it, you are not going back to the old fashion.
Nov 05, 2014 02:12 AM|Mikesdotnetting|LINK
SPA is not the answer to every project. I wouldn't consider it for line of business data entry type apps like the one you describe. Or a community forum like this one. Or a site like cnn.com. Also, having a one page site makes SEO very challenging, so if
that's important to you, you need to think carefully.
Having said that, I would consider taking an SPA approach to areas of a site where user experience is important.
Nov 05, 2014 03:09 AM|sun21170|LINK
Thanks for the excellent followup. It makes it very clear.
Nov 05, 2014 04:08 AM|francesco abbruzzese|LINK
Actually you don't "put everything in a single page" in a spa, but you update a single browser page with different contents through ajax. In a SPA you have Views that are analogous to standard server pages that are loaded through ajax in always the same
html page. A SPA may be modular exactly just as a standard web application. The advantages of a SPA are a better user experience, since less interactions with the server are needed, and presentation layer data structures that are available on the client side
Here a video of a business app implemented as a SPA, and