SharePoint User Group UK

Share the knowledge!

Welcome to SharePoint User Group UK Sign in | Join | Help
in
Home Blogs Forums Photos Files Roller

SystemName and ip Address of the current user

Last post 03-09-2010, 10:33 AM by Adrian_ForeShore. 1 replies.
Sort Posts: Previous Next
  •  02-04-2010, 10:31 AM 22558

    SystemName and ip Address of the current user

    Hi

    How to get Ip-address and System name of the current user logged  in the list when a new item is adding ?

    I have tried using EventRecievers I am getting error

    Any Idea ??

    Thanks

    Harish

  •  03-09-2010, 10:33 AM 23100 in reply to 22558

    Re: SystemName and ip Address of the current user

    Hi Harish,

    One method could be to write an event receiver and in the ItemAdded method pick up the ASP.net Request.UserHostAddress and Request.UserHostName properties and put them into new columns in the list - hey presto.

    See http://msdn.microsoft.com/en-us/library/ee231563(VS.100).aspx for information on event receivers and
    http://msdn.microsoft.com/en-us/library/system.web.httprequest_properties(VS.71).aspx for a list of properties available in the Request object.

    Hope this helps.

    Regards,

    Adrian Williams
    ForeShore Consulting Ltd
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems