L
Luke Dalessandro
I am trying to develop a quick Shopping cart for ASP.NET 2.0. I have added a
CartItems table to the AspNetDB access database, that contaings CartItems
keyed off of the aspney_Users.UserId key (the automatically generated
primary key for the table).
I want to bind the current user's CartItems to a GridView, which should be
really easy. The problem is that I need the UserID as a parameter for my
AccessDataSource. The parameters that can be automatically accessed can come
from any of the:
Control
QueryString
Session
Cookie
Form
Profile
groups.
I can't seem to find UserId exposed anywhere. The profile exposes UserName,
which I use to programatically grab the UserId for logged in users, but the
Cart needs to work for anonymous users...
Any help would be appreciated. I don't really want to write an
ObjectDataSource, although I will if that is the only way. It seems like
there should be some way to automatically bind to UserId though.
CartItems table to the AspNetDB access database, that contaings CartItems
keyed off of the aspney_Users.UserId key (the automatically generated
primary key for the table).
I want to bind the current user's CartItems to a GridView, which should be
really easy. The problem is that I need the UserID as a parameter for my
AccessDataSource. The parameters that can be automatically accessed can come
from any of the:
Control
QueryString
Session
Cookie
Form
Profile
groups.
I can't seem to find UserId exposed anywhere. The profile exposes UserName,
which I use to programatically grab the UserId for logged in users, but the
Cart needs to work for anonymous users...
Any help would be appreciated. I don't really want to write an
ObjectDataSource, although I will if that is the only way. It seems like
there should be some way to automatically bind to UserId though.