Browse by Tags

All Tags » HowTo (RSS)

Documents.Open returns null, running Word automation under ASP.NET on x64

When building an ASPapplication that generates Word documents, it was working fine on the local machine. A windows XP installation with Office 2007. When we deployed it to windows 2008 (64 bit) and Word 2007 we saw that Documents.Open returned null. Other...

HowTo: Save a file from Silverlight using the SaveFileDialog

Saving a file from Silverlight using the SaveFileDialog , added in Silverlight 3, is easy. If you’re used to desktop development however, you might find yourself getting a SecurityException with the message ‘File operation not permitted. Access to path...

HowTo: open all files from the Find Results window

Here’s a quick Visual Studio tip for you… I frequently search for a specific text in my solution because I need to do something in all places where that text occurs. Today I found out how you can open all the files that are mentioned in the...

HowTo: have Visual Studio open XAML documents in code view

Just a small post to start the new year... and let it be a good one! When opening a XAML document in Visual Studio, it opens in split view by default. This might become annoying when you have a large XAML document, because all the content needs to be...

Visual Studio: Zero-impact Projects & Cutting/copying empty lines

Yesterday I remembered two Visual Studio options Sara Ford told about in a presentation of her I attended a while back. Changing them made me happy... :) Zero-impact projects When I have to test something real quick, I tend to create a new project in...

Running Windows Vista on a MacBook Pro

When installing Windows Vista on a MacBook Pro, the default driver for the Wireless Network Adapter doesn’t function properly. To get the Wireless Network Adapter to work, first install the Boot Camp Services by inserting your OS X DVD and running the...
Posted by Rick van den Bosch | 1 comment(s)
Filed under:

HowTo: Add a body onload script to a page that uses a MasterPage

When you use a MasterPage to define the design of your website, you might come across the problem that there is no body element in a web content form. This can be a problem when you want to add an onload script to a specific page. You could of course...
Posted by Rick van den Bosch | 1 comment(s)
Filed under: ,

The absolute minimum every software developer ...

One of the posts that is being read quite frequently over here is HOWTO: Encode a password using MD5 in C# (or: howto calculate the MD5 hash for a string) . One of the (many) reactions to that post was from one Simucal, stating: Also, to the original...
Posted by Rick van den Bosch | with no comments
Filed under: , ,

Backing up and restoring Visual Studio settings

When roaming the MSDN forums for unanswered questions for me to answer, I come across a lot of questions about any of the following: Intellisense acting weird Intellisense not showing up at all Menu items that are all garbled up Missing buttons on toolbars...

LinkButton inside UpdatePanel results in full postback, UpdatePanel not triggered

When you dynamically generate a LinkButton in code that will be placed inside an UpdatePanel, you'll experience that the Click event for the LinkButton results in a full postback in stead of the UpdatePanel being triggered. There's a rather simpel...
Posted by Rick van den Bosch | 32 comment(s)
Filed under: , ,

Getting the ModalPopupExtender to work in SharePoint 2007

Getting the ModalPopupExtender from the Ajax Control Toolkit to work (decently) in SharePoint was not exactly a walk in the park. With a default SharePoint installation, the modal popup is partly positioned 'outside' of the page (you only see...

I8 converter - Download (sourcecode available)

One of my colleagues pointed out the new Fine-grained password policy feature in Windows Server 2008. As you can see in this post at The Sean Blog, some values have to be entered in the I8 format, which isn't very user friendly. Because of that, he...
Posted by Rick van den Bosch | 1 comment(s)
Filed under: , , ,

PageRequestManagerServerErrorException (status code 500)

In a quick AJAX demo I had to create today, I ran into a (somewhat cryptic) PageRequestManagerServerErrorException. I needed a simple form of the Cascading Dropdown , one that doesn't use a (web)service for its data, but gets it from a simple method...
Posted by Rick van den Bosch | 27 comment(s)
Filed under: , ,

Hooray (x 2) for MSDN library Community content

There are several steps to creating a custom web service to be hosted in SharePoint. The MSDN library has a walkthrough on creating a custom web service . After having followed this walkthrough thoroughly, I though my web service was good to go. Unfortunately...
Posted by Rick van den Bosch | 1 comment(s)
Filed under: , ,

HowTo: Set the Theme for a MasterPage (from code)

The MasterPage doesn't have a property for setting the Theme at design time. Despite this, I wanted to set the Theme for a MasterPage, so I decided to set it from code. I was aware of the possibility to set the Theme through the web.config , but that...
Posted by Rick van den Bosch | 21 comment(s)
Filed under: ,
More Posts Next page »