We can't tell you explicitly what to do - we don't have any idea how the rest of your code works. But all you have to do is look at where you log the user in, and find where you store the ID. Then put that value in place of the question mark in this line:
cmd.Parameters.AddWithValue("@ID", ?);