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,