2
Reply

How to cal Web API in Asp.Net Code Behind Page ?

Diptyajit Dey

Diptyajit Dey

Apr 11 2017 6:41 AM
1.6k

Url:http://111.93.203.157:8063/api/notification/eventnews


Result Return:
{
"data": {
"result": [
{
"NewsEventId": 1,
"EventName": "Bijaya Sammelani",
"Description": "Happy Bijaya dasami",
"EventDate": "2017-10-13T00:00:00",
"CreatedDate": "2017-03-09T18:20:16.41",
"ActiveFlag": 0,
"EventImage": "2.png",
"EventImageURL": "http://111.93.203.157:8099/EventImage/"
},
{
"NewsEventId": 2,
"EventName": "Annual Day",
"Description": "Annual day of the Company",
"EventDate": "2001-04-20T00:00:00",
"CreatedDate": "2017-03-27T12:52:35.947",
"ActiveFlag": 0,
"EventImage": "3.png",
"EventImageURL": "http://111.93.203.157:8099/EventImage/"
}
],
"error": null
}
}

This my web api and return value.
I am not understand how to call this web api in my web application. My working in Web Form so i need to this api call my code behind page(.cs) page. I am not interested to use Ajax. Only need how to call this code behind page and Get this value.

Answers (2)