Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
How to cal Web API in Asp.Net Code Behind Page ?
Diptyajit Dey
Apr 11 2017 6:41 AM
1.6k
Reply
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.
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
Binding 10K + elements to a dropdown list with selection
a gridview row databound value change