Parse numbers in singe textbox for query
<p>I’ve built a webform in Visual Web Developer Express 2008 to help me with my work.  I use a webform to run query requests that are emailed to me.  The inputs are in this format</p>

<p>12312 12312</p>

<p>12312 12312</p>

<p>12312 12312</p>

<p>12312 12312</p>

<p>I enter the first number in a textbox and the second number in another textbox and click a button that runs a query and returns the results in a gridview(single row).</p>

<pre><code>string strConn, strSQL;
            strConn = AppConfig.Connection
strSQL = 'select fields from table where FirstNum=:FirstNum and      SecondNum=:SecondNum';

            using (OracleConnection cn = new OracleConnection(strConn))
            {
                OracleCommand cmd = new OracleCommand(strSQL, cn);
                cmd.Parameters.AddWithValue(":FirstNum", txtFirstNum.Text);
                cmd.Parameters.AddWithValue(":SecondNum",
txtSecondNum.Text);
                cn.Open();

                using (OracleDataReader rdr = cmd.ExecuteReader())
                {
                    dgResults.DataSource = rdr;
                    dgResults.DataBind();
                }
                cn.Close();
            }
</code></pre>

<p>I had an idea to help me speed up my work.  I’d like to be able to past both numbers in a single textbox </p>

<p>( like this 12312 12312 )</p>

<p>and have the code parse out the nubmers for the query. Or even better would be to past all of them in a multiline textbox like this</p>

<p>12312 12312</p>

<p>12312 12312</p>

<p>12312 12312</p>

<p>12312 12312</p>

<p>And have them all parsed and the query run for each line and the results all output to one gridview.  I’m just not sure how to approach this.  Any suggestions would be appreciated.</p>

<p>Thank you.</p>
