Jim Mathew's Sharepoint Blog (MOSS Techie from Abu Dhabi)

April 15, 2009

Code Snippet: How to get client machine name?

Filed under: ASP.NET, Code Snippets, Tips & Tricks — Tags: , , — Jim Mathew @ 11:01 AM

I had a requirement to get client’s machine name   using smartpart user control in sharepoint . i have tried number of methods but unfortunately those show server name only.

here  is the code which works fine.

Dim host As  System.Net.IPHostEntry

host = System.Net.Dns.GetHostEntry(Request.ServerVariables.Item(“REMOTE_HOST”)) 

Dim strComputerName As String = host.HostName

label1.text= strComputerName

March 22, 2009

How to show Outlook INBOX & TASK in sharepoint sites?

Filed under: Code Snippets, Tips & Tricks, Webpart — Tags: , , , — Jim Mathew @ 4:55 PM

Add a Content Editor Webpart  (CEWP) to page and paste the below code.

Inbox

<OBJECT classid=”CLSID:0006F063-0000-0000-C000-000000000046″

 width=”100%”>

  <param name=”Folder” value=”Inbox”>

</OBJECT>

 

Tasks

<OBJECT classid=”CLSID:0006F063-0000-0000-C000-000000000046″

 width=”100%”>

  <param name=”Folder” value=”Tasks”>

</OBJECT>

This is not a perfect solution for showing inbox in portal but a quick and simple tip….Enjoy!

Voila!

Blog at WordPress.com.