Posts

Showing posts from February, 2011

Windows 7/Windows Server 2008 R2 SP1 released

Microsoft has released the Service Pack -1 for Windows 7 and Windows Server 2008 R2. The main feature in Windows Server 2008 R2 SP1 being the addition of RemoteFX. RemoteFX is a feature which enables rich user experience for Remote Desktop users. It enables rich interfaces with the utilization of GPU on the host. This means that remote desktop users can have a full blown Windows desktop experience remotely even from a thin client just as complex as a LCD display.The GPU on the server is shared among all the clients with the RemoteFX technology called VGPU(Virtual Graphical Processing Unit). The remote users can have all the rich experience of Sliverlight or 3D graphics from the client utilizing the VGPU. With the huge adoption of cloud by multiple organizations, Microsoft has yet again made a break through with RemoteFX by enabling the remote users to have rich User Experience which is the foremost requirement for an end user. With this great leap i expect more virtualization and mor

Handle Session Start for SharePoint 2010 applications

Image
I ran into a situation where i have to handle the session start of a SharePoint application. I dint find much information about it in the internet, so i decided to post one myself. There are two main steps for this. 1. Enable sessions for your SharePoint application 2. Handle the Session_Start event. To enable Sessions for SharePoint application, make the following changes in your web.config 1. Make enableSessionState= true 2. Replace the <httpModules/> with the below       <httpModules >            <add name="Session" type="System.Web.SessionState.SessionStateModule" />       </httpModules > 3. Add the Session module for your SharePoint site from the IIS Manager.     Open IIS Manager and expand sites.     Select your site and double click on Modules. Click on Add Managed Module on the right hand side Actions menu Give a name to the module and select the SessionStateModule from the drop down This will enable sessions for

Run Visual Studio 2010 as administrator

Image
To create SharePoint projects in Visual Studio, we need to run it as administrator. I find it cumbersome to right click on the icon and click on run as administrator. So i figured out a way to run the Visual Studio 2010 as administrator whenever it is started. For this go to properties on Visual Studio icon. Go to the Compatibility tab and check Run this program as administrator The next time you click on Visual Studio 2010 icon, it will run with the administrator privileges.

Using Resource files with SharePoint

Image
This post will explain how resource files can be used while creating visual web parts for SharePoint. For this i will create a project which will have a drop down with two languages English and French. It will also have a text box and label associated to it which asks for a name. When i select a language from the drop down, the text in the label will change according to the language selected. I will start off with creating a visual web part using Visual Studio 2010. The design view is shown below Then i will add two new resource files to this project, English.resx and French.resx Then i will add the key value pairs to the resource files. I will name the key as lblName and the value of it will be Name in the English resource file. In the French resource file, the key will remain the same lblName, but the value will be the french translation for name i. e Nom This is how the English.resx resource file looks like And this is how French.resx looks like I will handle the s