title: VS 2012 and SelectParameter in asp .net
body: <p>Hi I want to bind text string in SelectCommand code:</p>
  
  <pre><code>&lt;asp:TextBox ID="TextBox1" runat="server"&gt;&lt;/asp:TextBox&gt;
  &lt;asp:SqlDataSource ID="SqlDataSource1" runat="server"
       ConnectionString="&lt;%$ ConnectionStrings:finchsize_polibudaConnectionString %&gt;"
       SelectCommand="SELECT ocena FROM Oceny AS lista WHERE przedmiot = @ID"/&gt;
       &lt;SelectParameters&gt;
         &lt;asp:ControlParameter ControlID="TextBox1" DefaultValue="0" Name="ID"
              PropertyName="Text" Type="String" /&gt;
       &lt;/SelectParameters&gt;
  </code></pre>
  
  <p>But my VS 2012 said that: 1.Validation(XHTML5): Element SelectParameters is not supported. 2. Element 'ControlParameter' is not a known element. Do yuo know how to fix that, or is it any other way to bind some text in SelectCommand ?</p>
  
  <p>P.S. I tried </p>
  
  <pre><code>&lt;asp:QueryStringParameter /&gt;
  </code></pre>
  
  <p>as well but it gives me exactly the same error.</p>