how to get username for an ID from aspnetdb

Nov 5, 2009 at 8:53 PM

example userdisp.aspx?ID=1

how to check for the guid and match it to user id

UserProfileManager userProfileManager = new UserProfileManager(

serverContext);
 UserProfile profile = userProfileManager.GetUserProfile(Convert.ToInt32(context.Request.QueryString["ID"]));
context.Response.Write("(string)profile[PropertyConstants.UserName].Value);

it works when i use windows ntlm authentication but i cant get the username  using fba ...

HttpContext.Current.User.Identity.Name.ToString  gives me the current user name  ..
i need the one passed using userdisp.aspx?ID=
xxx

the ID is some GUID in aspnetdb ..
thanks