Hi SUJAYS,
Please refer below sample.
HTML
Name:
<asp:TextBox runat="server" ID="txtMessage" OnTextChanged="ChangeValue" AutoPostBack="true" />
<asp:Label ID="lblMessage" runat="server" />
Code
StringClass.as
public class StringClass
{
public string GetString(string message)
{
return message;
}
}
CS.aspx.cs
protected void ChangeValue(object sender, EventArgs e)
{
StringClass sc = new StringClass();
string value = sc.GetString(txtMessage.Text);
lblMessage.Text = "Name is :<b> " + value + "</b>";
}
Screenshot