Reputation: 662
I'm Using Knockout for view modesl with external templates and sammy for routing and Web API for fetching Data from server.
The Problem is
how can i use server routing to redirect user to client side routing e.g people/username to #/people/username.
Also there is a big confusion in authenticating user ?
how to authenticate user in single page application ?
there are some pages which can be viewed without login ? how to achieve that ?
Can i Use Partial View Result from Controller and fetch on view ?
Upvotes: 4
Views: 2701
Reputation: 662
use both url routing like sammy and server routing , load views via ajax and authenticate via controller .
Upvotes: 1
Reputation: 3824
Finally, you may be in over your head trying to do this. Microsoft's ASP.NET is a very thick technology for the web. I know it intimately and still I would tell you that I can build a single page application much quicker in a lot of other technologies. Add to that that I get the impression you're fairly new to ASP.NET based on the types of questions your asking and this will be a major challenge for you.
Good luck. And read this book. It's older technology, but I've never found a better book for teaching good practices. Steve Sanderson is a genius.
Upvotes: 4