Issues with API integration in VB Aspx web apps

Aypn CNN 446 Reputation points
2021-11-19T14:40:12.583+00:00

Hi,

I'm a very beginner on API integrations, developing apps using VS 2019 VB. ASPX, pls ref my code which is attached, im getting err., where I did a mistake please help me.

Thanks in advance.
151024-api-docu.txt

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,254 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
294 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Yijing Sun-MSFT 7,066 Reputation points
    2021-11-20T05:42:55.42+00:00

    Hi @Aypn CNN ,
    According to your description,I think,your problem is the response format is wrong. First, you could use Console.log to check the data using pressing F12. What's the type of your data in the code-behind? From your codes,I think,you have the json data. And, you need to parse the json string.Just like this:

    JSON.parse(data.d);  
    

    I think,you need to solve the problems first.

    Best regards,
    Yijing Sun


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments