• Subscribe to this RSS feed
  • Receive updates as soon as they are posted.

OK, let’s say you’ve changed your master page so that there’s no link to the Recycle Bin showing. Next, let’s say someone accidentally deleted a file, and you really need it back. And finally, you don’t remember how to get to the recycle bin. No worries –
Read the rest of this entry »

The first thing you should probably do is to make it so that, in your document libraries, PDF files should show up with the correct Icon in the ‘type’ column. To do that, follow the directions here:
http://allthingsdotnet.net/?p=793

Then, there are a few more steps necessary to enable SharePoint 2010 to actually search PDF documents.
Read the rest of this entry »

September 27 , 2011 | | In: WinForms, WinForms Tips

Fonts Listed in ComboBox

Have you ever wanted a combo box in your WinForms application that listed all the available fonts on the computer where it was running? Below, you’ll find a simple script to do do just that.
Read the rest of this entry »

If you need to find out how to save a site as a template, please check out our previous article Save as Site Template.

Once you’ve saved this template/solution to your local drive, you can create a new Web Application, and then create a Site collection, based on that solution, even though it’s not uploaded to the server yet. Read the rest of this entry »

If you are getting this error when trying to view a workbook/document in a document library (whether by default or by manual choice), there are a couple of lines you can run in SharePoint PowerShell that can take care of this. This is assuming, of course, your document is allowed to be viewed in a browser.
Read the rest of this entry »

September 15 , 2011 | | In: ASP.Net, C#, VB.Net

Function doesn’t return a value on all code paths

When you get a warning in your ASP.Net code, it means just what it says. The full error is usually:
“Function (YourFunction) doesn’t return a value on all code paths. A null reference exception could occur at run time when the result is used.”
Read the rest of this entry »

You probably know that, in order to retrieve the currently logged in user in ASP.Net, you would use this code snippet:

System.Web.HttpContext.Current.User.Identity.Name()

This returns the current user in the DOMAIN\USER format. But sometimes, all you want is the user name itself, without the Domain and slash. Here’s a function you can use to do this:
Read the rest of this entry »

As you may or may not know, in InfoPath 2010, the FileAttachment controls only allows the user the ability to attach one file. But, there is an easy way to attach multiple documents.
Read the rest of this entry »

September 13 , 2011 | | In: Silverlight, WPF

XAML – Affect Properties of One Control with Another

Sometimes you need to affect or change a property of one control based on the input of another control at runtime. A very simple example would be something like changing the Content property of a button by typing text into a Textbox. This is achieved by using a markup extension to bind the two controls together. Read the rest of this entry »

In creating a rule for an InfoPath control, you might run across the need to clear out the contents of a Person/Group Picker control, much like you would for a textbox. Of course, it’s really easy with a textbox – choose the ‘set a field’s value’ action, giving it the name of the control and set a field’s value to ‘blank’ by just leaving that textbox blank. Well you’ve probably found that it’s not quite so straight forward for the Person/Group Picker control. Read the rest of this entry »


 

DreamTemplate - Web Templates
-->