SP 2013中托管的“自定义aspx"页面中的“显示用户" IP地址 [英] Display Users IP address in Custom aspx page hosted in SP 2013
问题描述
我需要通过使用"Request.ServerVariables("REMOTE_ADDR")"在自定义站点页面中显示用户pc的IP地址.
I need to display ip address of users pc in a custom site page, via using "Request.ServerVariables("REMOTE_ADDR")".
如何在sharepoint 2013中实现它?
How to achieve it in sharepoint 2013?
我不想创建解决方案文件并将其添加到共享点.
I dont want to create solution file and add it to sharepoint.
推荐答案
请查看以下文章以了解更多详细信息:
Please check below articles for more details:
http://geekswithblogs.net/shehan/archive/2009/10/14/display-the-users-ip-address-in-a-data-view-web.aspx
http://geekswithblogs.net/shehan/archive/2009/10/14/display-the-users-ip-address-in-a-data-view-web.aspx
http://www.nothingbutsharepoint.com/2009/03/04/filtering-content-based-on-ip-address-aspx/
http://www.nothingbutsharepoint.com/2009/03/04/filtering-content-based-on-ip-address-aspx/
https://social.msdn.microsoft.com/Forums/office/zh-CN/f40ecb1b-2209-4e14-85de-be0b3ef3e39c/get-client-ip-address?forum=sharepointdevelopmentlegacy
https://social.msdn.microsoft.com/Forums/office/en-US/f40ecb1b-2209-4e14-85de-be0b3ef3e39c/get-client-ip-address?forum=sharepointdevelopmentlegacy
https://social.msdn.microsoft.com/Forums/sharepoint/en-US/eafe6989-abda-45b9-8507-6a64da2d31a6/sharepoint2010-how-to-display-ip-address-of-user-accessing -the-site?forum = sharepointdevelopment以前的
https://social.msdn.microsoft.com/Forums/sharepoint/en-US/eafe6989-abda-45b9-8507-6a64da2d31a6/sharepoint2010-how-to-display-ip-address-of-user-accessing-the-site?forum=sharepointdevelopmentprevious
https://www.experts-exchange.com/questions/27680359/Client-IP-Address-in-Custom-MasterMasterPage-on-Intranet.html
https://www.experts-exchange.com/questions/27680359/Client-IP-Address-in-Custom-MasterPage-on-Intranet.html
这篇关于SP 2013中托管的“自定义aspx"页面中的“显示用户" IP地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!