kk0239
kk0239

Reputation: 13

calculating total using angularjs and webforms usercontrol

Im new to using angularjs with webforms.

i am using asp.net 4.0 webforms project. It have a usercontrol(uc.ascx) with a textbox and I dynamically multiple of the usercontrols on a page(Default.aspx)..on this aspx page i have a text box which should display the sum of the values in the textboxes of the dynamically added usercontrol..

can some one help me on how i can achieve this?

I researched all over the internet but could find a proper tutorial that works with usercontrols and angularjs

Upvotes: 0

Views: 788

Answers (1)

pedrommuller
pedrommuller

Reputation: 16056

Well I think your are looking into the wrong direction angularJs isn't similar to knockoutJS probably both of them have double binding, but definitely they are very different.

Angular is a Single page application that's built mostly for CRUD's applications, the typical architecture is to use a restFul web service behind angular (which is going to be your front end) and they communicate using JSON as the communitacion format, been that said, I'd suggest to move on ASP.NET web API and angular

this video could be helpful for you to get the whole picture.

EDIT:

Unfortunately i don't have an specific example for your scenario but I've found a couple of articles that may help you on your journey.

A good example of how to use knockout.js and asp.net definetelly you can look at it and take that as a good source for learn it and apply it to your case.

This is another example using a usercontrol with knockoutjs

take a look to this gibhub repo with and example of the proposed architecture

Upvotes: 1

Related Questions