Read value from textbox and display on page using label

Write a program to read value from TextBox control and display on page using Label Control.

HTML

<%--//===== Label to show output.--%>
Enter Some Value <%--//==== Textbox to take input --%>
 

Code Behind

protected void btnCalculate_Click(object sender, EventArgs e)
    {
        //==== Read value from textbox and display on page using label.
        lblResult.Text = txtValue.Text;

    }

Final Output:

TextBox-value-to-label-asp-net-practicle-question-codingfusion

 

 
We are nothing without our users ! You can help us offer even more high quality content. Please share our page !
Best quality Asp .Net Ajax Control Toolkit tutorials.

Give your valuable comments.

Name
Email
Comment
1 + 5 =
 
About Us | Terms of Use | Privacy Policy | Disclaimer | Contact Us Copyright © 2012-2023 CodingFusion
75 Important SQL Server queries you should know