Question

I would like to get the userID of the current logged on user in DotNetNuke on a custom module. It's important not to use any functions from the code behind. Any ideas?

Était-ce utile?

La solution

If your ASCX File inherits from PortalModuleBase (or a class that ultimately inherits from that) you can use something like

<%= UserId %>

That will spit it out on the page.

edit: updated to include the right code

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top