programming

  • system.windows.resourcedictionary. source threw an exception wpf c#

    In general this issue is caused when a referenced resource cannot be found. In my specific circumstance, as the xaml above details, this issue was caused by a reference to PresentationFramework.Aero DLL that was not contained in the output bin… Continue reading

  • Android Launch Browser from App to handle external URLs

    Upon googling for this one, I found some good relevant links on stack overflow as well as the android webview documentation, but no singular solution that tied everything together. First, I created a custom WebViewClient class. Note that this is… Continue reading

  • DLL in Stored Procedure MSSQL

    Extended Stored Procedures (MSDN), http://support.microsoft.com/kb/190987 Thread Local Storage in an extended stored procedure (MSDN), http://support.microsoft.com/kb/163449 Continue reading

  • HTTP Post in C# .Net

    Why re-invent the wheel? 😉 See below for a few quick examples from the minds over at csharp-online and codeproject. Note: Any snippets may have been condensed from their original sources for brevity. See references for original articles. All examples… Continue reading

  • String Formatting

    Snippets below have been condensed from their original sources for brevity. See references for original articles. All examples are in C# .Net. My own little function: Format With extension method by James Newton-King: References James Newton-King, “FormatWith”,http://james.newtonking.com/archive/2008/03/27/formatwith-string-format-extension-method.aspx Continue reading

  • URL Encode in .Net

    C#: (ASP .Net) C#: (Client/Server Environment) References MSDN, WebUtility Classhttp://msdn.microsoft.com/en-us/library/system.net.webutility.aspx MSDN, Uri Classhttp://msdn.microsoft.com/en-us/library/system.uri.escapeuristring.aspx MSDN blogs, http://blogs.msdn.com/b/yangxind/archive/2006/11/09/don-t-use-net-system-uri-unescapedatastring-in-url-decoding.aspx Continue reading

  • Quick .Net Encryption Reference

    The code below represents a very basic .NET encryption class which has been tested and should work in your application – simply plug and play. 🙂 Contains two static methods that can be called without needing to instantiate the class.… Continue reading

  • Get Current URL in Javascript

    JS (JQuery): JS (standard): Continue reading

  • JQuery Grid Themes

    Useful links to JQuery grids utilizing (mostly) standard UI themes and/or very little code. Google! http://jquery-ui.googlecode.com/svn/branches/labs/grid/tests/static/grid/default.html Datatables.Net: http://www.datatables.net/styling/themes/smoothness Ke-Cai: http://www.ke-cai.net/2010/01/theme-your-table-with-jquery-ui.html Trirand: http://www.trirand.com/blog/jqgrid/jqgrid.html Stackoverflow: http://stackoverflow.com/questions/2613632/jquery-ui-themes-and-html-tables Continue reading

  • JQuery and Partial Postbacks

    I recently came across an issue where JQuery bindings no longer functioned after a partial postback and stumbled upon some code that was helpful in most cases. Javascript (JQuery): And alternatively.. This code will not always work however, as was… Continue reading