title: Show json result in Textbox ASP.Net
body: <p>I want to know that how can I get the following json result in textbox instead console.log in asp.net C# ?</p>
  <pre><code>&lt;script&gt;
  
          var apikey = {
              key:'XXX'
          }
  
              request('GET', 'https://pro-api.coinmarketcap.com/v1/global-metrics/quotes/latest?CMC_PRO_API_KEY=' + apikey.key).then((r1) =&gt; {
                  var x1 = JSON.parse(r1.target.responseText);
                  console.log(x1.data.quote.USD.total_market_cap);
          }).catch()
  
          function request(method, url)
          {
              return new Promise(function (resolve, reject) {
                  var xhr = new XMLHttpRequest();
                  xhr.open(method, url);
                  xhr.onload = resolve;
                  xhr.onerror = reject;
                  xhr.send();
              });
          }
          &lt;/script&gt;
  </code></pre>
  <p>Thx everyone</p>