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

Developer technologies | ASP.NET | ASP.NET API
Developer technologies | ASP.NET | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Yijing Sun-MSFT 7,106 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

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.