ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.Read JSON data from URL using C# and VB.Net in ASP.Net<p>Hey <a class="username" rel="makumbi">makumbi</a>,</p> <p>Please refer below code.</p> <p><span style="text-decoration: underline;"><strong>Code</strong></span></p> <p><strong>C#</strong></p> <pre class="brush: csharp">protected void Page_Load(object sender, EventArgs e) { string json = new System.Net.WebClient().DownloadString(&#34;http://static.social.ndtv.com/files/blanket-jk-count.json&#34;); string count = json.Split(&#39;:&#39;)[1].Replace(&#34;}&#34;, &#34;&#34;); }</pre> <p><strong>VB.Net</strong></p> <pre class="brush: vb">Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load Dim json As String = New System.Net.WebClient().DownloadString(&#34;http://static.social.ndtv.com/files/blanket-jk-count.json&#34;) Dim count As String = json.Split(&#34;:&#34;c)(1).Replace(&#34;}&#34;, &#34;&#34;) End Sub</pre> <p>&nbsp;</p>https://www.aspforums.net:443/Threads/120954/Read-JSON-data-from-URL-using-C-and-VBNet-in-ASPNet/https://www.aspforums.net:443/Threads/120954/Read-JSON-data-from-URL-using-C-and-VBNet-in-ASPNet/Sun, 02 Dec 2018 22:36:52 GMT