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 [...]
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 [...]
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 [...]
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 [...]
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.
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 [...]
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 [...]
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 [...]
