Hi,
I have a custom list and visual webpart.
I am trying to use the REST services to fetch data from the custom list and showing it in various fields of visual webpart.
The call to the webpart has a querystring variable. I am trying to get the data from the custom list based on this querystring.
Example: servername/sitename/_vti_bin/ListData.svc/CustomList is my current URL.
The call to visual webpart is like this: servername/sitename/sitepages/testpage?ItemID=01
If ItemID =01, then get the item which matches ItemID in the custom list.
How to change the REST url based on the querystring?
Thanks