Hi,
I'm trying to use this:
My stored cookie name is: LoginID and the content is: UserGUID=c2a89926-868b-41a2-bad2-9a67fe9c140a&UserID=2
How can I get the UserID session value from my session?
I'm trying to use this:
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" SelectCommand="SELECT [ProductID], [ProductName], [ProductPrice], [PicName], [ModifiedDate] FROM [Products] WHERE ([UserID] = @UserID)"><SelectParameters><asp:SessionParameter Name="UserID" SessionField="LoginID" Type="Int32" DefaultValue="1" /></SelectParameters></asp:SqlDataSource>My stored cookie name is: LoginID and the content is: UserGUID=c2a89926-868b-41a2-bad2-9a67fe9c140a&UserID=2
How can I get the UserID session value from my session?