ID
selectクエリのパラメータにHTTPヘッダーからバインドしようとしました。nullがバインドされているかのようにレコードを返しません。何が問題になる可能性があります。
<asp:SqlDataSource ID="sdsCities" runat="server" ConnectionString="<%$ ConnectionStrings:MyConn %>"
SelectCommand="SELECT * FROM [cities] WHERE ([cityid] = @cityid) ORDER BY DateCreated Desc">
<SelectParameters>
<asp:QueryStringParameter Name="cityid" QueryStringField="ID" Type="Int32" DefaultValue="7856"/>
</SelectParameters>
</asp:SqlDataSource>
アドレスバーにこの文字列があります
?mode=full&ID=123
デフォルト値でも機能しません。助けていただければ幸いです。