Archive for the ‘Code’ Category

For SharePoint 2007 I had a need to write a console application that fires the Immediate Alerts timer job manually. The Immediate Alerts timer job executes every 5 minutes by default to send out the email alerts setup by users in SharePoint. For most cases, simply changing the interval of the timer service with stsadm [...]

  • Share/Bookmark
Thursday, August 5th, 2010 at 13:03 | 0 comments
Categories: Code, How To, SharePoint, Web

On of the useful things you can do with GridViews in ASP.NET is to run code during the rendering of each individual row. This allows you to change aspects, such as visual appearance, of each row based on the values of the cells. For instance, you can change the background color of the cell based [...]

  • Share/Bookmark
Wednesday, July 21st, 2010 at 12:02 | 3 comments
Categories: Code, How To, Web

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull content or data from www.bing.com. One way to overcome this issue is by using a server-side proxy on the site [...]

  • Share/Bookmark
Wednesday, June 23rd, 2010 at 08:43 | 5 comments
Categories: Code, How To, Web, jQuery

When designing high traffic websites, it is important to ensure the pages load quickly and not make excessive use of server resources. One of the biggest culprets to slow page loads and exessive use of server resources is images. There are many instances where images used for design and layout purposes could be replaced with [...]

  • Share/Bookmark
Thursday, June 10th, 2010 at 13:52 | 0 comments
Categories: Code, Graphics, How To, Web

When working with buttons in C# for ASP.NET, it is often helpful to add JavaScript actions programmatically to the button that trigger when clicked in addition backend C# code. This can be used to generate pop-ups, create alerts and confirmations, disable buttons, etc.

  • Share/Bookmark
Thursday, June 10th, 2010 at 13:03 | 0 comments
Categories: Code, How To, Web

One thing that I have always found quite annoying in SharePoint 2007 is that content page titles are ugly.  For instance, if I create a new Web Part Page and give it the title “My Blog” with the URL “/pages/my_blog”, the title of the page in the browser ends up being “Pages – my_blog”.  Quick [...]

  • Share/Bookmark
Wednesday, January 13th, 2010 at 16:40 | 0 comments
Categories: Code, SharePoint, Web, jQuery

PLEASE NOTE:  This solution only applies to machines running 64-bit versions of Windows Vista and 7.  It does not apply to other versions of Windows or to any 32-bit version of Windows. On Windows Vista 64-bit and Windows 7 64-bit, users have noticed that with Adobe Acrobat (Pro or Reader) installed, Windows Explorer and Microsoft [...]

  • Share/Bookmark
Friday, January 8th, 2010 at 13:29 | 4 comments
Categories: Code, How To

With CSS2 there is no easy way to set the height of an element to match the length of a page. Most people try to use: height: 100%; This only sets the element to be the height of the browser window. As soon as you scroll down, your element does not keep going. In all [...]

  • Share/Bookmark
Wednesday, December 2nd, 2009 at 03:23 | 1 comment
Categories: Code, Web, jQuery
TOP