'object' does not contain a definition for 'Text' and no accessible extension method 'Text' accepting a first argument of type 'object' could be found

  • Thread starter Thread starter Jake918
  • Start date Start date
J

Jake918

Guest
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Net;

namespace restClientV2
{
public partial class Form1 : Form
{
private object txtRequestURI;

public Form1()
{
InitializeComponent();
}
#region UI Event Handlers
private void cmdGO_Click(object sender, EventArgs e)
{
RestClient rClient = new RestClient();
rClient.endPoint = txtRequestURI.Text;


debugOutput("Rest Client Created");

string strResponse = string.Empty;

strResponse = rClient.makeRequest();

debugOutput(strResponse);
}

#endregion

}
}


I am getting the error message in the title

Continue reading...
 
Back
Top