Hi sakis,
You can't just add an aspx to DNN. You have to create a module. DNN uses user controls (ascx) that it 'injects' into the Default page of the program. The good news is you can download the Visual Studio DNN stater kit from the downloads section, the same place you downloaded DNN. Get the starter kit for the version of DNN you have, not sure if this makes a difference but better safe then sorry.
After downloading the starter kit, make sure you have Visual Studio closed and double click the file to install it.
Next step is to go to Michael Washingtons DNN help and start from the beginning, the link is below. His tutorials will have you up and programming in no time.
www.adefwebserver.com/DotNetNukeHELP/
As to how to actually get the currently logged in Users Profile.
Load DNN into Visual Studio.
Select the top level directory at the top of the soulution explorer window. Select 'Add new Item'
Scroll to the bottom and select DotNetNuke Simple Dynamic Module.
Follow the directions that appear to change the name of the module.
If you have trouble with setting up the module go to the above link and take the Super-Simple tutorial.
Finally to get the Users Profile use:
Dim CUserInfo As New UserInfo
Dim CUserProfile As New UserProfile
CUserInfo = UserController.GetUser(PortalId, UserId, True)
CUserProfile = CUserInfo.Profile
FirstNameTextBox = CUserProfile.FirstName
LastNameTextBox = CUserProfile.LastName
The PortalID and UserID as part of the Entities.Modules.PortalModuleBase so you don't have to supply the values. You can place this code in any event that you wish.
I hope this helps.
Dan5150