How to split a string and assign each word to a new variable?
<p>I'm making a credit card processing form. The field in question is Name: (first and last).</p>

<p>What would some C# code look like that would take the text from a text box and split it, then assign each word (in this case first and last name) into two new strings?</p>

<p>E.g. <code>txtName.Text = "John Doe"</code></p>

<p>After split</p>

<pre><code>string fName = "John";

string LName = "Doe";
</code></pre>
