Here label1
is a Label That you placed in the UI, And you are trying to assign a string value to that control. Such assignment is not valid and not permitted. Your requirement is to assign alPos
as the Text property of the Label Control. So your query should be like the following:
label1.Text = alPos.ToString();
1
solved Textbox into Label [closed]