title: Retrieving data from azure mobile services Xamarin
body: <p>I am new to xamarin, and I am trying to figure out how to retrieve a number to display in a text box. I am using the example azure mobile services for xamarin as a base and trying to modify it for my purposes. my problems occur when I try to retrieve data from a class that is not a TableViewCell. the code below is what I am trying</p>
  
  <pre><code>       private async Task RefreshAsync()
      {
  
          NSIndexPath indexPath = new NSIndexPath();
  
  
         var label = new UILabel(new RectangleF(200, 200, 200, 200));
          View.Add(label);
          label.Font = UIFont.SystemFontOfSize(35);
  
          while (true)
          {
              int my = todoService.Items2[indexPath.Row].t1;
  
              RefreshControl.BeginRefreshing();
              await todoService.RefreshDataAsync();
              RefreshControl.EndRefreshing();
  
              label.Text = my.ToString();
              await Task.Delay(30000);
          }}
  </code></pre>
  
  <p>it does not show any errors, but when it compiles it does not run and throws an exception. is there a way to get the data into a label without using indexpath and update it automatically every 30 seconds? any suggestions are greatly appreciated. I thank you in advance.</p>