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
few javascript files.
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
Thanks and Best Regards
Xinyang Qiu, Azure Web Platform and Tools team, Microsoft
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?
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 .
Thanks and Best Regards
Xinyang Qiu, Azure Web Platform and Tools team, Microsoft
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.
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
logics.
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?
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.
Thanks!
Thanks and Best Regards
Xinyang Qiu, Azure Web Platform and Tools team, Microsoft
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.
timgriff1785
Member
4 Points
9 Posts
Single Page App template download
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 few javascript files.
xinqiu
Member
486 Points
116 Posts
Microsoft
Re: Single Page App template download
Feb 07, 2013 09:44 PM|LINK
I just created the C# template and uploaded to https://github.com/xqiu/xqiuSamples/tree/master/MVCSPA_CS_VS2012.2RC
Xinyang Qiu, Azure Web Platform and Tools team, Microsoft
xinqiu
Member
486 Points
116 Posts
Microsoft
Re: Single Page App template download
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
Xinyang Qiu, Azure Web Platform and Tools team, Microsoft
sisdog
Member
8 Points
17 Posts
Re: Single Page App template download
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?
xinqiu
Member
486 Points
116 Posts
Microsoft
Re: Single Page App template download
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 .
Xinyang Qiu, Azure Web Platform and Tools team, Microsoft
sisdog
Member
8 Points
17 Posts
Re: Single Page App template download
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.
Mark
xinqiu
Member
486 Points
116 Posts
Microsoft
Re: Single Page App template download
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 logics.
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
Xinyang Qiu, Azure Web Platform and Tools team, Microsoft
sisdog
Member
8 Points
17 Posts
Re: Single Page App template download
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?
xinqiu
Member
486 Points
116 Posts
Microsoft
Re: Single Page App template download
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.
Thanks!
Xinyang Qiu, Azure Web Platform and Tools team, Microsoft
johnpapa
Member
80 Points
10 Posts
MVP
Re: Single Page App template download
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.