Go back to mobile site

 

Please note: The forums are currently intended for Kentico community. Although we monitor them time to time, we cannot guarantee a timely response. If you need a help with Kentico CMS, please feel free to send your message to support@kentico.com.

If you want to add new post or reply to post, please sign in.

Search: 

Installation and deployment Questions on installation, system configuration and deployment to the live server.
Version 5.x > Installation and deployment > UserID - View modes: 
User avatar
Member
Member
zamora.roberto-lcithenetwork - 4/28/2011 12:10:04 PM
     
UserID -
Hi Guys
My name is roberto, from Mexico

I am developing a new button control where I want to know UserID of the user clicked it, and his session is ON,
I have to transfer you some data from a SQL statement of Kentico Data Base.

Thanks! :)


User avatar
Certified Developer v6
Certified Developer v6
dvanbale - 4/29/2011 1:41:13 AM
     
RE:UserID -
Hello Roberto,

You can use the following line of code in your click event handler to retrieve the current UserID.

CMSContext.CurrentUser.UserID

Regards,

User avatar
Member
Member
zamora.roberto-lcithenetwork - 4/29/2011 10:39:19 AM
     
RE:UserID -
Thanks dvanbale, I have UserID :)

1

Sitemap | Content Management System | E-commerce Software | Social Networking Software | Intranet | Online Marketing Solution | Copyright © 2004-2013 Kentico Software | Powered by Kentico CMS