jeudi 30 juin 2016

How to add if statement to record

How do I add if statement inside this record?

CorpData.Address viewAddress = new CorpData.Address
        {
            DocumentId = lblDocId.Text.ToUpper(),

            Address =  txtAddress.Text.ToUpper(),
            AddressCity = txtCity.Text.ToUpper(),
            AddressZip = txtZip.Text.ToUpper(),
            StateCode = statesDropdown.SelectedValue,
        };

I am trying to add an if statement to check if stateCode in the US

Aucun commentaire:

Enregistrer un commentaire