how can i fill the gridview with dataset?
<p>this is my code :</p>

<pre><code>    string aaa;
    aaa = Request.Params["aaa"];
    string strSel;
    if (aaa != "" &amp;&amp; aaa != null)
    {
       // Response.Write("&lt;script&gt;alert('" + aaa + "');&lt;/script&gt;");
        strSel = "Select * from inout where FName like '%" + aaa + "%'";

    }
    else
    {
        strSel = "Select * from inout";
    }
    Response.Write(strSel);
    string strProvider = "Server=(local);DataBase=AIS20060712101417;UID=sa;PWD=";
    Data0 ds= new Data0();
    SqlConnection MyConn = new SqlConnection(strProvider);
    MyConn.Open();
    SqlDataAdapter MyAdapter = new SqlDataAdapter(strSel, MyConn);
    MyAdapter.Fill(ds,"inout");  
    GridView1.DataSource = ds;
    GridView1.DataBind();  
</code></pre>

<p>then the gridview is empty.</p>
