SharePoint User Group UK

Share the knowledge!

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

Ip Address and Systemname in the list

Last post 02-12-2010, 6:31 AM by dhshyd. 2 replies.
Sort Posts: Previous Next
  •  02-04-2010, 10:31 AM 22557

    Ip Address and Systemname in the list

    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

     Can anyone tell me how to get this ???

     

    Thanks

    Harish

     

  •  02-11-2010, 10:01 PM 22654 in reply to 22557

    Re: Ip Address and Systemname in the list

    I think the only information you'd be able to get is what you can extract out of the HTTP Request object as thats the only item that would carry any information about the requesting client.

    Take a look at HTTPContext.Request.UserHostAddress and HTTPContext.Request.UserHostName.

    You'll only be able to access that in a Synchronous Event Handler, i.e. Item Updating

    Paul.

     


    www.myfatblog.co.uk
    twitter.com/@cimares
    MCTS: WSS 3.0
    MCTS: MOSS 2007
  •  02-12-2010, 6:31 AM 22656 in reply to 22654

    Re: Ip Address and Systemname in the list

    Hi Paul

    Thanks for the reply

    In the C# application how to get the HttpContent Object

    Can you please expalin me ?

    I have tried I am getting the ServerName not the Client Name who has accessed the url.

    Thanks

    Harish

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems