Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Mar 04, 2013 02:15 AM by johnpapa
Feb 07, 2013 11:03 AM|LINK
Anyone know if there's anywhere I can get hold of the To-Do List SPA template that are in VS 2012.2? It's still pre-release so I don't particularly want to install the update on my machine, nore do I want to have to set up a virtual machine just to get a
Feb 07, 2013 09:44 PM|LINK
I just created the C# template and uploaded to
Feb 19, 2013 12:18 AM|LINK
We just released RTM version ASP.NET and Web Tools 2012.2
You can install it and have the latest of SPA template there. Also http://www.asp.net/single-page-application now have 4 more SPA templates that you can take a look at as well, they require you install the RTM version of ASP.NET
and Web Tools 2012.2
Feb 20, 2013 03:54 AM|LINK
I just downloaded the latest ASP.NET and Web Tools 2012.2. I went into VS2012 and went to create a new project. I could not find a SPA template anywhere. Where is it supposed to be?
Feb 20, 2013 05:25 AM|LINK
It's inside the MVC4 project dialog, sitting besides the internet, intranet, mobile, facebook templates. Please also take a look at
http://www.asp.net/single-page-application for more information after you confirmed that you can create the SPA project inside a MVC4 .
Feb 20, 2013 03:24 PM|LINK
Thanks for the help Xinqiu, I was able to find it. That wasn't necesarily intuitive so I might recommend that those small instructions be made more prominent on the SPA page.
Regarding the template itself, I ran the project immediately after installing it and turned on Fiddler to see all the SPA goodness. I was expecting to the see only postbacks to the server for data or view fragments. I was surprised to see that each new
action generated a full postback to the server. Isn't this counter to the whole SPA philosophy? I'm just trying to get up to speed with SPA but in other demos I've watched (like here http://www.devexpress.com/Support/Webinars/details.xml?id=AppsWithSPA )
and that isn't how their architecture works.
Feb 20, 2013 05:16 PM|LINK
The shipped SPA template has a full post for authentication, after that, each action for creating/read/update/delete todo list and todo items are AJAX json callbacks. You may want to call it as hybrid, but it still essentially a SPA project for main business
If you are looking for full SPA template sample, you can check
http://www.asp.net/single-page-application/overview/introduction/other-libraries . It will give you 4 more template with different frameworks, 2 of them also similar to our SPA template with authentications. 2 others are barebones to get you started,
which is more like what you are asking for:
DurandalJS template and
Hot Towel template
Feb 20, 2013 09:13 PM|LINK
Thanks Xinyang. I can see how there are several degrees of SPA-ness out there and I'll look at the other solutions. I'm surprised that your showcase flavor of SPA is not a single page though. Maybe I'm way off here but to call solution a single page app
shouldn't it only use one single page? Wouldn't you have to call yours a Multi-Page App? BTW, I don't know if you were part of the authoring team for this template: is there a better forum to discuss the philosophical parts of this?
Feb 25, 2013 06:42 PM|LINK
@sisdog, I'm part of the team for this template.
You might be more interested to discuss the general SPA concept with community expert such as johnpapa.net.
Auth on a separate page is probably make sense as once you are authorized, you are no longer need to go back to that page unless you sign off. For example, go to gmail.com which is one of the famous SPA app out there, you'll see that their authentication
is on a separate page, only if you pass the authentication, that you will be able to go into SPA.
Mar 04, 2013 02:15 AM|LINK
SPA is an interesting term, and sometimes misleading. All of the ASP.NET SPA tempaltes are indeed "SPA". There are 2 ways folks look at "pages": server side views and client side views. In a simple SPA there would be 1 server side view (MVC view or standard
html page). Then the client could have multiple views using page navigation to get around.
Or you could go more advanced and have multiple server side views, each with their own related client side views. Think of that as a bunch of mini SPA's linked ot each other.
I'm less concerned about discussing the semantics though then finding out what it is you are trying to solve. That, often, can help narrow down where to focus. I linger on StackOverflow.com, my blog http://johnpapa.net and twitter at @john_papa if you want
to read more.