You need to sign in to do that
Don't have an account?
Siva Sakthi
how to display the current user name in textbox ?
how to display the current user name in textbox using controller ? (Sample Code)
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
how to display the current user name in textbox using controller ? (Sample Code)
User usr = [SELECT ID, Name FROM User WHERE ID = :UserInfo.getUserId()];
You will get the name in {!usr.Name} in page.
You can also get the user name directly in vf page
{!$User.FirstName} {!$User.LastName}
If this post is helpful please throw Kudos.If this post solves your problem kindly mark it as solution.
Thanks
All Answers
Hi Maheshwar,
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_userinfo.htm
Please let me know if you have any questions.
Thanks,
Samba
User usr = [SELECT ID, Name FROM User WHERE ID = :UserInfo.getUserId()];
You will get the name in {!usr.Name} in page.
You can also get the user name directly in vf page
{!$User.FirstName} {!$User.LastName}
If this post is helpful please throw Kudos.If this post solves your problem kindly mark it as solution.
Thanks
Thanks. I got it