Recently I have been working on a Sharepoint 2010 and I had created a Class Library project that will contain some classes and methods. One of the custom webparts I had created was calling a method from one of the class, but when I press F5 to deploy and test my web part I got an error and my assembly file was missing in Sharepoint. I realised that my Class Library assembly file was not deployed.
Below is a simple step by step instruction on how to include a assembly file in your Sharepoint package.
For example here I have a solution with a Sharepoint 2010 and a class library project. In the Sharepoint 2010 project there is a package folder containing a file called Package.package.
If you don’t own a Windows based Tablet/Slate and you would like to test out Windows 8 Developer’s Preview with the tablet experience and you own an Apple iPad, well there is an app for this.
A company called SplashTop has developed an app that allows you to remotely connect to your Windows 8 machine, to make this work you will need to download the streamer software for Windows 8, and then purchase a copy of the Win8 Metro Testbed app from iTunes.
How does this work? Well it streams your desktop to your iPad, it’s like using a Remote Desktop application but with touch gestures to give you the metro experience.
Today I tried to run Visual Studio 11 Express and I received a few errors and a message telling me that my version of Windows 8 has expired on 11 March 2012 and I need to purchase the release version. I was thinking to myself there is no release version yet, and there must be some way to extend the expiration date. So I Googled and found out that Microsoft has released an update to extend the expiration date to the 15th January 2013.
If you are having the same experience as me right now, all you need to do is go to Control Panel and into Windows Update and click on Check for Updates. Some how I noticed that the Automatic Update didn’t detect the latest updates.
For further information on this update and instructions click here.
Recently I had someone posting a question about how to access the Text properties of a different control. I thought of using reflection, because you don’t need to know the type of control you are handling and you don’t need to type cast the object.
If you are handling one specific control, there is no point using reflection, I would suggest just type cast it.
Below is a code snippet from an example I have written to demonstrate how to share one event method with multiple controls on a form. In the method it will get the string value from the Text property of the selected control.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Reflection;
namespace ReflectionExample1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void DisplayText(object sender, MouseEventArgs e)
{
Type type = sender.GetType();
PropertyInfo pInfo = type.GetProperty("Text");
String value = pInfo.GetValue(sender, null).ToString();
MessageBox.Show(value);
}
}
}
Ok Windows 8 Developer’s Camp 2012 is coming soon to Perth Western Australia, it will be held at University of Western Australia. This event is free and it’s a full day event filled with lessons on developing metro style applications for Windows 8. The event will be held on the 16th June 2012 from 9:00am to 5:30pm Saturday.
If any developer’s from Perth, is reading this blog and would like to go and meet up at the event send me a message on twitter @david_loo.
For further details of the event and registration in your local area go to the link below: