I had a login page. once user successfuly logged in, they can view and manage their profile/information. This would be done by retrieving data from database and display on a
Try the following:
DbParameter param = e.Command.CreateParameter(); param.ParameterName = "@UserId"; param.Value = currentUserId; e.Command.Parameters.Add(param);
I didn't test this though