.net

  • 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

  • OAuth Specs and Protocol

    The OAuth protocol defines a common data structure for communicating between websites. This relatively new format is increasing in popularity and used in many different sites including Facebook and Google. Microsoft has even added support for it in its latest… Continue reading

  • Quick Silverlight References

    Most of the links below are relatively introductory, but they do serve as a quick refresher if it has been awhile since you have worked with Silverlight. Though not all of the links are specific to SL4, I would recommend… Continue reading

  • Bind Control to an Object in Windows Forms

    Simple solution for basic binding in Windows Forms app. This would NOT be recommended if you are using ASP .Net, Silverlight, WCF, RIA or any other services to retrieve the data as these project types have much better support for… Continue reading

  • .Net Thread Safety

    Any future posts regarding thread safe calls will go here. C#: (field) C#: (singleton) 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

  • Quick .Net Email Reference

    I’ve done a bit of encapsulation here to abstract the concept into clearer functionality, IMO. Make sure to add “using” reference directives for System.Threading and System.Net.Mail accordingly, when necessary. Note usage of basic boolean “sync lock” style logic in place… 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