Category Archives: Web Development

SharePoint 2010: Custom Timer Job Caching Old Code

I’m new to SharePoint 2010 development, and while I was working on a Custom Timer Job, every time I made a change to my code I noticed that those changes were not being applied… the “old” code was still being used. So, after doing some research (and losing a lot of hair), the way to [...]

Using The Post Method In Ajax

In the Rasmus’ 30 Second Ajax Tutorial, we’re using the get method to send our request: function sndReq(action) { http.open(’get’, ‘rpc.php?action=’+action); http.onreadystatechange = handleResponse; http.send(null); } But what if we want to use the post method? Well, let’s modify that function to do just that: function sndReq(action) { http.open(’post’, ‘rpc.php’, true); http.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); http.setRequestHeader("Content-length", action.length); [...]

Denying Directory Listing With htaccess

Just type: Options -Indexes That’s it!

Convert Pixels to Points to Ems

I was looking for a way to convert pixels to ems for a website project I was working on, and came across this conversion table which, I’m sure, will be a useful reference to you if you ever need to convert pixels to points or ems (or percentage). In case you don’t know, using pixel [...]

Retrieving The Value Of A Flash DataGrid Cell

Well, kinda late, but I wish you all a Happy New Year! This year, I want to blog more. And to accomplish this, I’ll be managing my time better. It won’t be easy but I’ll do it. Okay, now on to today’s tip. Because I’m kinda rusty in ActionScript, one of my goals is to [...]

Cryptographically Random Unique String

Looking for a way to create a Random Password Generator, I came across the following code written by Peter Bromberg (I thought to post it here in case it saves someone some time). This code will generate a cryptographically random unique string of any length you want. Ah! BTW, I’ve made a very small modification [...]

System.Web.HttpException: The file ‘/path/to/userControl.ascx’ does not exist.

If you’re working with User Controls (or other server side controls) and your file structure looks something like this: [] = directory [root] [userControls] ucTest.ascx ….. ucContainer.aspx Web.config And in your ucContainer.aspx file you have something similar to this: < %@ Register Src=”userControls/ucTest.ascx” TagName=”UserControl” TagPrefix=”uc1″ %> … … <uc1:UserControl id=”ucUserControl” runat=”server” /> … … And [...]