QueryString Parameter
<p>My code:</p>



<pre class="lang-html prettyprint-override"><code>&lt;html&gt;
&lt;asp:SqlDataSource   
          ID="SqlDataSource1"
          runat="server"  
          ConnectionString="&lt;%$ ConnectionStrings:NorthWindConnectionString %&gt;"  
          SelectCommand="GetProductsByCategoryID"  
          SelectCommandType="StoredProcedure"&gt;           

&lt;SelectParameters&gt;
                &lt;asp:QueryStringParameter Name="CategoryID"  
                            QueryStringField="CategoryID" /&gt;  
            &lt;/SelectParameters&gt; 

&lt;/html&gt;
</code></pre>

<p>I'm using on my ASP.NET page a stored procedure.<br>
But this page is giving a blank page it should give me when I click on the other page  the products corresponding to the categoryId clicked all is working fine except this page is giving blank result.</p>

<p>If I put for example <code>defaultValue="2"</code> it gives  me result so what I might be missing?</p>

<p>The link is built with such code:</p>

<pre><code>&lt;ItemTemplate&gt; &lt;a href="QueryStringParameterTest.aspx? CategoryID=&lt;%# Eval("CategoryID") %&gt;"&gt; &lt;%# Eval("CategoryName") %&gt;&lt;/a&gt; &lt;/ItemTemplate&gt;
</code></pre>
