user contol textbox value to datagrid
<p>there are two usercontrol in my form as <strong>label textbox datepicker</strong>
1st label=From date
2nd label=TO date
there is also one data grid and one button
now i wnt <strong>data between two dates in datagrid as from two textboxes in user control</strong>
i m trying this code but it is not working:</p>

<pre><code>SqlConnection cs = new SqlConnection("Data Source=IRIS-CSG-174;Initial Catalog=library_system;Integrated Security=True");
            cs.Open();
            SqlCommand cmd = new SqlCommand("select * from dbo.lib_issue_details where book_issue_on between'" + userControl11+ "'" + "and'" + userControl12.Text + "'", cs);
            SqlDataAdapter da = new SqlDataAdapter(cmd);
            DataTable dt = new DataTable();
            DataSet ds = new DataSet();
            da.Fill(ds, "lib_issue_details");
            dataGridView1.DataSource = ds.Tables[0];
            dataGridView1.DataBindings.Add(new Binding("text", ds, "lib_issue_details"));

            cs.Close();
</code></pre>
