Pass (Send) Label value to TextBox using C# and VB.Net in ASP.Net

on Aug 05, 2020 12:57 AM

Hello Everyone, 

I want to pass values from labelbox.text to a textbox.text, I am using this way but it passes only 0?

LabelAl.Text = TextBox1.Text
LabelEn.Text = TextBox2.Text
LabelEl.Text = TextBox3.Text

Thank you , Blessings

Download FREE API for Word, Excel and PDF in ASP.Net: Download
on Aug 05, 2020 07:31 AM

Use this code to set the TextBox from Label control.

textbox.Text = labelbox.Text