我正在尝试在源代码的查询中传递 Request.QueryString 整数值。我该怎么做?
http://localhost:3738/WebSite3/UserDetails.aspx?Id=43
我想在查询中传递 id 的值,即 43
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:SLIITComDBConnectionString %>"
SelectCommand="SELECT Album.AlbumID, Album.DefaultPhotID, Album.AlbumName, PhotAlbum.Photo FROM Album INNER JOIN PhotAlbum ON Album.DefaultPhotID = PhotAlbum.PhotoID where album.userid= **Request.QueryString[id]** ">