Home > Net >  A great god, and of all stripes to ask a few confusing things webapi with webapp in ASP.NET
A great god, and of all stripes to ask a few confusing things webapi with webapp in ASP.NET

Time:12-19

Hi,
Use VS tools to create a WEBAPI project, then it has its own frame,
Now there's a doubt, I use the VS tools to create a web application project, and then a new a.a SPX, in its corresponding a.c s file handling others access a.a SPX when the sound of a post request
The namespace WebApp
{
Public partial class AWEB: System. Web. UI. Page
{
Protected void Page_Load (object sender, EventArgs e)
{
The HttpRequest HttpRequest=this. The Request;
}
}
This way to deal with the above post/get the message, and then according to the received data parsing is the sort of event
Confused now is that this way is also webapi above?

First contact WEB, because since its creation vs. WEBAPI feeling a lot of things, so I don't know it this directly to create a WEB APPLICATTION WEB page processing post/get have what distinction,
Thank you!

CodePudding user response:

Aspx is one of the traditional webform architecture,
It is the object, may calculate the MVC architecture,

And webapi if want compared with before, the estimate is ashx file handle,
Or webservice,

Ask you what to do, web pages, or interface,



CodePudding user response:

reference 1st floor is nu month god reply:
aspx is one of the traditional webform architecture,
It is the object, may calculate the MVC architecture,

And webapi if want compared with before, the estimate is ashx file handle,
Or webservice,

Ask you what to do, web pages, or interface,


Hello, I want to do the interface, for example APP or application software to simulate HTTP request calls,
If we can use traditional web aspx this way? Because webapi create engineering framework is bigger, just thinking about using a source of simplification to build an API calls to other applications

CodePudding user response:

If just provide the interface, it is suggested that using webapi
And webapi only a framework, not what is said

CodePudding user response:

Webapi, a data interface based on web technology (HTTP) referred to, in the. Net MVC system, is a relatively independent server application framework, focusing on the data interface,

Webapp and you say, it should be a way of providing web services, useful to in traditional webform, are data interface, the work principle is the same, just different packaging, different performance

CodePudding user response:

With ashx is ok, don't use aspx, this magnitude to cross-platform use Asp.net core webapi

CodePudding user response:

refer to the second floor lijian910wolf response:
Quote: refer to 1st floor is nu month god reply:
aspx is one of the traditional webform architecture,
It is the object, may calculate the MVC architecture,

And webapi if want compared with before, the estimate is ashx file handle,
Or webservice,

Ask you what to do, web pages, or interface,


Hello, I want to do the interface, for example APP or application software to simulate HTTP request calls,
If we can use traditional web aspx this way? Because webapi create engineering framework is bigger, just thinking about using a source of simplification to build an API calls to other application

If not very complex, so it is ok to use ashx,

CodePudding user response:

Aspx, ashx, webapi is ok, see you demand,

CodePudding user response:

refer to fifth floor nan peony reply:
with ashx is ok, don't use aspx, this magnitude to cross-platform use Asp.net core webapi

Hello, aspx before a project with this, feeling super slow, because I'm new to this, not points clear on the difference between the web API and web app or ashx
Till now, I probably understand: actually above these can achieve do way for other applications to provide API calls, just different implementation methods, performance and so on,
So is it with.net core webapi performance is the best? Because aspx this it also integrates a page feel performance than ashx this single file performance is poor

CodePudding user response:

reference 4 floor fonee response:
webapi, is a web based technology (HTTP) generally referred to as the data interface, the. Net MVC system, is a relatively independent server application framework, focusing on the data interface,

Webapp and you say, it should be a way of providing web services, useful to in traditional webform, data interface, working principle is same, only different encapsulation, different sign


Hello, I want to used as high concurrency receive data background (some high concurrent platform will push out data), don't know what kind of good method

CodePudding user response:

WebApi can only deal with Json request and returns a Json object, can generate Json document, other are the same, are based on the HTTP request and response,
  • Related