Will "the Mighty" Strohl

Will Strohl's Blog

rss

My name is Will Strohl. I'm a former employee of DNN Corp., a leader, personal branding expert, technologist, gamer, and more...


Common MultiThreading Compiler Error

Here is something that was happening to me today when trying to spawn a new thread to perform some task...

String Performance Guide

I very often end up speaking to people about how much proper string handling, concatenation, and evaluation can increase the performance of a web site or application. So I decided to write a guide about it...


HOW TO: Load an XPathDocument Using a String Object

For some odd reason, the XPathDocument class does not support loading the object using a string. However, this seems to be an integral requirement for some applications where the XML is generated and parsed on-the-fly. Here's how to do that...

HOW TO: Implement a Client-Side Form on .Net Apps

There are times when you need to incorporate a client-side form on your web form, user control, or DNN module. As you probably already know, this will not work. By default, ASP.Net doesn't allow child forms anymore.

Using JavaScript to change the image on a page

I recently had a project where the home page for a web site called for an image that loaded randomly each time the page is loaded. For example, the first time you viewed the home page, you might be looking at monkeys, the next time a llama, and so on.

HOW TO: Select/Deselect All Checkboxes

Invariably, at some point you will have a control that needs to display a list of options as a checkbox list. In order for our application to be user-friendly, we will need to provide the ability for the end-user to Select All checkboxes with a single click, as well as uncheck all checkboxes. With a bit of client-side code, this is easily achieved.

HOW TO: Return the Database Name from a Connection String

Have you ever worked with an application that had many different connection strings and databases? It is sometimes necessary to grab some information from those connection strings. I have run into such a situation recently. Here is how to grab the database name from the connection string.

HOW TO: Escape Single Quotes for JavaScript Strings

While I was writing a class to allow me to quickly grab preformatted JavaScript functions (i.e., confirm, alert, etc.), I came across the need to ensure that a string passed into those methods would not throw a JavaScript error upon rendering. This could possibly happen if the message contained singles quotes for contractions, quotes, etc.

How To: Loop Through Controls and Change the Label of a Checkbox

From time to time we need to do something that the .Net framework doesn't immediately expose to us (without some finagling). In this instance, I wanted to override the attributes that the labels generated by the CheckBoxList webcontrol. However, I only wanted to modify this one instance of it.

Dynamically Creating a DataTable for Bindable Times

I came across a requirement where I needed to create a DataTable of times for a project. This table didn't need to take up any space on the database since it would never change. The times would need to be listed in 30 minute increments for each hour of the day. This would then get binded mostly by dropdown lists.

Affiliate Disclosure: Some of the links on this site may be affiliate links. This means, at no additional cost to you, I may earn a commission if you click through and make a purchase. All editorial content is not influenced by partnerships. I only recommend products and services I genuinely believe in.

© Copyright 2004-2026 by Will Strohl | Site design by Ralph Williams | Hosting Provided by Applied Innovations | DNN Development & Consulting | | Login