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
If you already have the parameter listed in your SqlDataSource, then simply point to it and change it's value ...
e.Command.Parameters["@UserId"].Value = currentUserId;
You do not need to create a parameter, unless you have not listed it back in your ASP page.