Exemplo n.º 1
0
 public bool ShowResentButton(GrabzItScrape obj)
 {
     if (obj != null && obj.Results != null)
     {
         return(obj.Results.Length > 0);
     }
     return(false);
 }
Exemplo n.º 2
0
        protected void btnResend_Click(object sender, System.EventArgs e)
        {
            Button button = (Button)sender;
            GrabzItScrapeClient client = new GrabzItScrapeClient(ConfigurationManager.AppSettings["ApplicationKey"], ConfigurationManager.AppSettings["ApplicationSecret"]);
            GrabzItScrape       scrape = client.GetScrape(button.CommandArgument);

            if (scrape != null)
            {
                client.SendResult(button.CommandArgument, scrape.Results[0].ID);
                lblMessage.Text = "Successfully requested result to be re-sent!";
            }
        }