SharePoint 2007 developers (MOSS 2007 / WSS 3.0) need a handy way to get to the 12 hive. The 12 hive is the location that contains the SharePoint installation. It is located at “C:\Program Files\Common Files\Microsoft Shared\web server extensions\12”. On way is to add a toolbar. To add one first open the 12 hive folder in windows explorer. Grab and drag the folder icon in the address bar with a left mouse button. Drag it down onto your to the right hand side of the taskbar just to the left of the...
In this Demo I will show 3 ways to have your web page locate your MediaElement’s video file. I have created a Silverlight 3 application and let it automatically create a web site to host the control. Drag a <MediaElement> onto the UserControl and set its source file attribute. Drag the video file using window explorer and drop it in the root of my Silverlight’s UserControl project. Note the size of this file is about 25mb. I will demo 3 different methods for setting the location so that the...
Sometimes while developing websites on your dev machine you may want to encrypt sections of your web.config to hide user ids, passwords or other secret type stuff. To do this by using a particular directory path, as in a file system hosted website, you can use the ASPNET_REGIIS utility with the –pef switch. If you are using IIS to host your site rather than a website, you can use the ASPNET_REGIIS utility with the –pe switch and a –app switch to point to the virtual directory. Either of these two...
Often we have typed datasets coming back from component methods that we want to bind to a GridView at runtime. There are multiple ways to do this. The first technique is without using an ObjectDataSource, the second one is with an ObjectDataSource. Although with either technique its not to difficult to do the bind, formatting the gridview can be a challenge. I have a small app for a library that keeps track of a library’s membership, books checked out, etc. I have a business component that has a...
We all reuse our windows controls out of the toolbox so why not our WPF user controls? The process is really the same. To show the steps involved let’s first write a simple WPF user control. After renaming the control and adding a WPF application project to my solution(to test with), my solution looks like this Since the functionality of the control is not important in this article, I just pasted in some animation code from msdn into my MyDemoControl.xaml file. <UserControl x:Class="MyDemoControl.MyDe...
Have you ever tried to implicitly cast a larger data type into a smaller type (as far as the number of bits) through a plain old assignment? c# wont let you do it! In this case the long’s value of 5 will definitely fit into an int but the compiler will still give you a no-no. Its avoiding possibly dropping some of the 64 bits when assigning the value to 32 bits. Not to worry, you can always do the explicit cast. int myInt; long myLong = 5; myInt = (int)myLong; This lets the compiler know that you...