I'm trying to update a person's details in the database. Since I'm using textboxes, how would I keep the original value if the textbox is empty?

I'm trying to write it in a short way rather than having a tonne of IF statements.

The code I've written will work but not the way I want, any suggestions on what I could do?

Code (C#):

```
 foreach (Control c in pnlUpdate.Controls)
        {
            if (c is TextBox)
            {
                TextBox questionTextBox = c as TextBox;
                if (questionTextBox.Text == "")
                {
                    questionTextBox.Text = pat[0].Forename;
                    questionTextBox.Text = pat[0].Surname;
                    questionTextBox.Text = pat[0].Street;
                    questionTextBox.Text = pat[0].Town;
                    questionTextBox.Text = pat[0].City;
                    questionTextBox.Text = pat[0].DOB.ToString();
                    questionTextBox.Text = pat[0].House_number;
                    questionTextBox.Text = pat[0].Mobile;
                }
            }
        }

```

Pat = database object