.net - converting int to string in a textbox -


I have a novel statement by creating a text box with a variety of details about a person from the list

  Public Zero Performance Senior (foreach (senior player in senior player senior) {if (combo list seaplayer.Socured itam == spam .name) {txtSeniorName.Text = spName; TxtAdress.Text = Sp.Address; TxtDOB.Text = sp.DoB; TxtEmail.Text = sp.Email; TxtDoctor.Text = sp.DoctorNme; TxtKnowIssues.Text = sp.Health; TxtNextofKin.Text = sp.NextOfKin; TxtPostcode.Text = sp .Pstcode; Int.Parse (txtPhoneNum.Text) = sp.PhoneNum;}}}  

When I try to parse the text box, I get an error on the "left hand side of the assignment should be a variable, property or index".

What would be a way to score this goal?

Thanks for any help and feedback!

Since you mention that sp.phoneNum "an integer value holding a phone number"

should be

  TxtPhoneNum.Text = sp.PhoneNum.ToString (CultureInfo.InvariantCultu Re);  

Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

lua - HowTo create a fuel bar -