Programming & Development

  • JQuery and Frames

    Although there is definitely some room for debate in the web development and design community on where the usage of frames is necessary, there are some situations where they cannot be avoided. Manipulation of data within these frames can be… Continue reading

  • Get IP Address of Originating Website From a Webservice

    The following code was used in a .Net 3.5 web service to retrieve the IP Address of the website consuming it. This solution may initially escape you since it might seem like the web service should run within an HTTP… Continue reading

  • JQuery AJAX Reference

    Keep in mind when using code below if requesting a page that requires login/restricted access, users login session is not carried over. Snippet below is sample code usage illustrating two different methods of achieving similar result. See references for more… Continue reading

  • JQuery Is Not Defined

    This is a common error for users implementing JQuery UI. Usually if you see this message, this could mean a few things: – There is a syntax issue or bad link referencing the JQuery (min/full) JS. Use your debuggers to… Continue reading

  • Lambda Functions in .Net

    Lambda expressions in .Net are denoted by the ‘=>’ symbol. These powerful operators can be used to create sleek, optimized loops that perform much faster. The usage below condenses the equivalent of at least 20 lines of two loops. (Sorry… Continue reading

  • Using jQuery and ScriptManager to update dynamic page elements

    I recently came across a situation where an element on the page was not updating dynamically after post backs. It was quick and easy to add an update panel and the necessary logic to use the built in asp .Net… Continue reading

  • Get Current Page Name in ASP .NET

    The code snippet below is a quick, easy to use function which allows you to get the current active page in an asp .net website/application. There are similar functions for getting header information about a page, however, after some research… Continue reading

  • Programmatically fire an event handler in ASP .NET

    I recently came across a situation which any web application developer may face where an assembly reference containing the code-behind for each ASPX page was deprecated and the original source code was no longer available. Since this code also includes… Continue reading

  • Javascript Security

    Little code snippet a colleague of mine stumbled across.. Go to any site, then in the address line of your browser for that site, replace the entire URL with the code below. Watch as you can now edit any content… Continue reading

  • Disable button on AJAX Postback

    Many different implementations exist for disabling a button on AJAX post-back. I find the following code snippet to be very simple, clear and effective. Although this example applies to ASP. NET, with small modification this would work for PHP as… Continue reading