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

  • Question

  • 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()
            #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();

    I am getting the error message in the title
    Tuesday, March 10, 2020 7:03 PM


All replies