Hi smile,
Please take reference to below code and correct your code.
HTML
<asp:Label ID="lblStatement" runat="server"></asp:Label>
Code
C#
protected void Page_Load(object sender, EventArgs e)
{
string strStatement = "The Quick Brown";
lblStatement.Text = "Total Characters Count : " + strStatement.Length.ToString();
}
VB.Net
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
Dim strStatement As String = "The Quick Brown"
lblStatement.Text = "Total Characters Count : " & strStatement.Length.ToString()
End Sub
Output
Total Characters Count : 15