Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using ASP.NET Web Forms without WiFi
Message
 
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows 10
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01627849
Message ID:
01627919
Views:
44
>I see Craig's provided an answer. Basically WebApi simply responds to HTTP requests by sending .NET objects (which can be complex) back to the client - in your case a browser in which case converting them to JSon objects makes sense (WebApi can do that for you automatically.)
>
>Behind that you will need another layer on the server which will retrieve data from SQL and convert it to suitable objects and which will update the SQL DB from data returned by the browser where necessary. This is where Entity Framework shines - it can do all that work for you. If you don't want to use it then the approach we talked about earlier (or Rob's suggestion) can work. My experience is that EF is simple to set up if you are working against a stable DB structure - but can get hairy if the DB design itself is in a state of flux.
>
>On the client you can make calls to WebApi using XMLHttpRequest or, maybe better, use the angularjs $https service (or the higher level $resource service). The advantage of angularjs is that it can update the DOM automatically when data is received (basically acting as a MVC/MVVM type controller on the browser).
>
>If you want to give me an example DB table I could probably knock up a concrete example for you....

Sorry for throwing many questions at you. Somewhere in one of your posts you said that you build your pages in plain HTML (not ASP.NET or ASP MVC). But what technology have you used for creating your WebApi?
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform