• Get Selected Item from ListBox in Winforms C# and VB .Net

    Iterate through all items: Find specific item text: More generalized for re-usability to get text or value, though a little less readable and alot more code:

  • Change default MSSQL Port and Connect

    Changing default port of Microsoft SQL Server differs depending on the version. The following is for the latest version of MSSQL only. If you’re using 2005, the steps are similar to those below, but the area you need to go is the SQL surface area configuration instead. If you’re using 2000, it’s time to upgrade.…

  • URL Rewriting/Mapping using Global.asax

    Ultimately I wound up using a different method, specified in my other blog post on URL Rewriting on GoDaddy and Shared hosting. However, the method below is actually very useful if you are trying to do certain validation which cannot be expressed in web.config or RegEx prior to redirect, such as checking if querystring is…

  • URL Rewriting on GoDaddy and Shared hosting

    After doing a lot of searching through google queries, forums and archives, I was finally able to solve the conundrum of using URL rewriting on GoDaddy. The site in question is also a subdomain in a sub folder off the root site, meaning web.config rules cascade, which complicated things slightly more and was enough to…

  • Simple URL ReWriting/Mapping in IIS7

    There’s an easy alternative to other over-complicated solutions on the web if your mappings are simple/static and/or you have a spare grunt to quickly and easily keep them updated without having to write a line of code. In web.config add: Under system.web add static mappings like so: Voila. Of course some scenarios require more complex…