0

i was hoping i could capture external web service just the way i interact with my database e.g

var data_websevice = Database.Open("http://www.stackoverflow.com/atom/tags");

is this a possibility?

I actually need to return a json data to my client page. using the autocomplete jquery UI.Thanks

Ifeanyi Chukwu
  • 3,187
  • 3
  • 28
  • 32

1 Answers1

1

You can't use the Database helper for that. It's only intended for use with databases.

You can obtain data from an external resource by Uri using the WebClient class to request it, just like in any other ASP.NET application.

Mike Brind
  • 28,238
  • 6
  • 56
  • 88