응용해 보시기 바랍니다.
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
SelectCommand="SELECT * FROM [test] WHERE ([TEST_ID] = @TEST_ID)">
<SelectParameters>
<asp:QueryStringParameter Name="TEST_ID" QueryStringField="id" Type="Object" />
</SelectParameters>
</asp:SqlDataSource>
그 이외의 파라미터 관련 내용입니다.
ControlParameter : A parameter that can be used to bind to a control's property or method return value.
CookieParameter : A parameter that can be used to bind to the value of a cookie.
FormParameter : A parameter that can be used to bind to an attribute of the current Web Forms page.
QueryStringParameter : A parameter that can be used to bind to a value passed to a Web Forms page on a query string.
SessionParameter : A parameter that can be used to bind to the value of a session variable.
ProfileParameter : A parameter that can be used to bind to the value of an ASP.NET Profile property.
cs 단에서 한다면.???
SqlDataSource1.SelectCommand = "Select * from notes where ID=" + Request.QueryString["ID"];