Click here to Skip to main content
15,395,276 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am making a project on the eCommerce web application. I am using ASP.NET web application, ASP.NET web API, and SQL server. I don't understand how to connect aspx web page to web API services.

What I have tried:

Gfg, StackOverflow, MS documentation
Updated 6-May-22 9:17am

1 solution

It looks that you wanted to get response from set of endpoints of webapi,right?

If yes then you have to create a generic class( like requestresponse.cs in appliction itself) having method/function based on verbose(get,post,delete,put..etc)where endpoint name would as passing parameter.

Check some sample code that how to apply httpclient request and get the response against any url.

Hope this would help you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900