Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
45 views

Loop through Knockout observable array of objects with observable properties

In my app I need to loop through my Knockout observable array of objects with observable properties. This is so I can post each object back to the server. I can access my model but I can not access ...
Ian W's user avatar
  • 421
0 votes
1 answer
75 views

Unable To populate view or view model Updaed

Hi I am following up on this question here and working through a proof of concept for a SPA using our Company database data from a series of examples / articles Using Web API 2 with Entity Framework ...
Ian W's user avatar
  • 421
1 vote
1 answer
483 views

Form post from partial view to API

I am trying to create an SPA application using Sammy. When I call #/entitycreate link, I return a partial view from Home controller which contains an html form to submit. Partial view comes as I ...
mnyarar's user avatar
  • 535
0 votes
3 answers
130 views

Do I need to create objects on the client and web api in order to post parameters as JSON?

I need to pass a list of ids, a username, and id to my web api as a post. The list of ids I'm retrieving from a knockout array, id is the selected id from a radio button list (populated from a ...
shw's user avatar
  • 145
1 vote
1 answer
2k views

PDF Document to WebAPI for download

I have a page that allows a user to click a button, and it makes a WebAPI call to my .Net backend controller which generates a PDFSharp document object. I need to return that (binary?) object to the ...
Craig's user avatar
  • 18.8k
1 vote
2 answers
349 views

Display an Image from a WebAPI call

I have generated an image in my .Net backend service, and am sitting with a System.Drawing.Image object. I made a call to my WebAPI method, rendered the image, and would like to return the image to ...
Craig's user avatar
  • 18.8k
1 vote
1 answer
72 views

Unable to view data on an oservable

I have a View model, which has a loaddata function. It has no constructor. I want it to call the loadData method IF the ID field has a value. That field is obtained via: self.TemplateId = ko....
Craig's user avatar
  • 18.8k
3 votes
1 answer
729 views

ASP.Net WebAPI Owin authentication token in Knockout

I am trying to create a demo project which uses .Net ASP.Net WebAPI and KnockoutJs as the front end. I have created the controller methods that listen for the /token post, and validates a user, and ...
Craig's user avatar
  • 18.8k
0 votes
1 answer
136 views

Edit power point file in custom web site

Our company has internal web application based on asp.net mvc, web api and knockout. Users can upload file into this applications which is stored in DB (there special api to work with files in our app)...
vitaly's user avatar
  • 53
6 votes
2 answers
6k views

Asp.Net WebApi OWIN Authentication

After following an online tutorial to use token based authentication using OWIN, I managed to get my test app authenticating against a hard coded username/password, as the demo did. However, now I ...
Craig's user avatar
  • 18.8k
0 votes
2 answers
308 views

Knockout mapping from .Net class

In C#, I pass an object from my API call to the UI, and want to then automatically map the properties of that object, to a view model. I'm hoping to do this with the mapping plugin for Knockout. ...
Craig's user avatar
  • 18.8k
1 vote
1 answer
807 views

TypeScript, Knockout and Classes

In my typescript file, I am trying to have an observable class which holds all my UI related fields, which I can then get and post to the server. I have it outisde of my viewmodel, as I want to ...
Craig's user avatar
  • 18.8k
0 votes
1 answer
1k views

KnockoutJS + WebAPI 2 Token Authentication - maintain login state until token expires

I'm fairly new to token based authentication and I have a problem of how to maintain login state after I login. I want to create a SPA website for which I am using Knockoutjs for my front end and ...
Robert's user avatar
  • 3
2 votes
2 answers
3k views

Knockoutjs: Accessing property of observable object

I'm new to knockoutjs and I'm following the Microsoft tutorial on how to use knockoutjs with MVC Web API located here: https://www.asp.net/web-api/overview/data/using-web-api-with-entity-framework/...
gooseman's user avatar
  • 475
0 votes
1 answer
73 views

Can't find WebAPI method

I have declared a function on my API controller: [HttpGet, Authorize] public List<UIPhotoModel> GetPhotosByAlbumID(int AlbumID) { .... } I call it from my javascript: var urinocat = '/api/...
Craig's user avatar
  • 18.8k

15 30 50 per page
1
2 3 4 5
13