문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top