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.Find Length / Count Number of characters in sentence (String) using C# and VB.Net<p>&nbsp;string s=<em><strong>"The Quick Brown";</strong></em></p> <p><em><strong>Total Characters Count :s.length();</strong></em></p> <p>&nbsp;</p> <p><em>use string builder class in namespace of page</em></p>https://www.aspforums.net:443/Threads/170594/Find-Length-Count-Number-of-characters-in-sentence-String-using-C-and-VBNet/https://www.aspforums.net:443/Threads/170594/Find-Length-Count-Number-of-characters-in-sentence-String-using-C-and-VBNet/Tue, 05 Jun 2018 05:03:11 GMTFind Length / Count Number of characters in sentence (String) using C# and VB.Net<p>Hi <a class="username" rel="smile"> smile</a>,</p> <p>Please take reference to below code and correct your code.</p> <p><span style="text-decoration: underline;"><strong>HTML</strong></span></p> <pre class="brush: html">&lt;asp:Label ID=&#34;lblStatement&#34; runat=&#34;server&#34;&gt;&lt;/asp:Label&gt;</pre> <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 strStatement = &#34;The Quick Brown&#34;; lblStatement.Text = &#34;Total Characters Count : &#34; + strStatement.Length.ToString(); }</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 strStatement As String = &#34;The Quick Brown&#34; lblStatement.Text = &#34;Total Characters Count : &#34; &amp; strStatement.Length.ToString() End Sub</pre> <p><span style="text-decoration: underline;"><strong>Output</strong></span></p> <p>Total Characters Count : 15</p>https://www.aspforums.net:443/Threads/170594/Find-Length-Count-Number-of-characters-in-sentence-String-using-C-and-VBNet/https://www.aspforums.net:443/Threads/170594/Find-Length-Count-Number-of-characters-in-sentence-String-using-C-and-VBNet/Tue, 05 Jun 2018 05:12:12 GMT