1. Posting an AJAX JSON request with jQuery

    After trying to Google this for the fifth time, and writing it from scratch for the seventh time, I'm sticking this snippet here. In AJAX apps, it's always made sense to me to do JSON both ways, even though the jQuery default is form-data up and whatever down. Once ASP …

    read more

    There are comments.

  2. Script to turn on "Treat Warnings as Errors"

    This PowerShell script recursively finds all .csproj files in a directory and sets "Treat warnings as errors" to "All" for every one of them that doesn't already have it set. I definitely prefer this compilation option, but on larger systems getting those all flipped can be a tedious process.

    get-childitem …
    read more

    There are comments.

  3. ASP.NET Selective Validation Hack

    Scenario: using classic ASP.NET Web Forms, we have a data entry page. On the bottom of the page are two buttons: "Save Draft" and "Submit."

    When a user Saves a Draft, we want to do some validation, but not all. We want to make sure only numbers are entered …

    read more

    There are comments.

  4. The Speed of Trust: Integrity

    A quick check of where we're at in this large book. The main structure starts inward-most and works out:

    1. Self trust (credibility).
      1. Integrity. ← You are here.
      2. Intent.
      3. Capabilities.
      4. Results.
    2. Relationship trust.
    3. Organizational trust.
    4. Market trust.
    5. Societal trust.

    Integrity vs. other aspects of credibility.

    To see Integrity's importance in overall credibility …

    read more

    There are comments.

  5. Global JavaScript Events with jQuery

    When building web applications with sophisticated client-side behavior (i.e., you have a lot of JavaScript) I work hard to define loosely-coupled JavaScript modules. Intentional developers strive for structured and modular server-side code, but because of JavaScript's history we tend not to take the same care with it. We then …

    read more

    There are comments.

  6. SQL Snapshot Notes

    Sometimes when testing you need to repetitively restore a database back to a certain point in time. For very large databases the regular SQL restore can take quite a while. It seemed to me that using snapshots instead of regular backups cut this restore down quite a bit.

    To Create …

    read more

    There are comments.

  7. VB.NET Logical Operators

    Quick chart to clarify which VB.NET operators one should use always.*

    Never Use Instead, Always Use:
    IIf(x, y, z) If(x, y, z)
    And AndAlso
    Or OrElse
    image1 image2

    * Always means "pretty much always." There may be some very rare, strange cases to use the "never use" items.

    ** Logical Awesome …

    read more

    There are comments.

« Page 2 / 6 »

links

social