Web development Work

Javascript Array to JSON String with JSON.stringify

JSON.stringify is a great little function that I keep forgetting to utilize. It’s here for reference. Fiddle Hit ‘Result’

Tags
.net Web development

Generating Barcodes with Barcode Generator and ASP.NET

Generating barcodes in ASP.NET is pretty easy with Barcode Generator. Barcode Generator is free for non-commercial use but priced right for commercial use. If you are a commercial site, try the free version locally and, if it works for you, spring for the license. VB.NET is used below but Barcode Generator’s examples are in C#. [...]

Tags
jquery

Position jQuery UI Dialog Relative to Link or Page Element

Demonstration of positioning a jQuery UI dialog relative to a link or radio buttons. Question from stackoverflow.com. It could be adapted to position under or next to any element on a page. It would work nicely as a form field hint dialog or help dialog. Two demos are below. One for a single element and [...]

Tags ,
.net Google Analytics

Google Analytics Click Event Tracking on LinkButton in ASP.NET (VB)

Google Analytics integration with .NET web parts requires more planning and execution than with straight HTML. To apply dynamic event tracking to a LinkButton we can attach a function to the OnClientClick attribute of the LinkButton. First, a review of how the event tracking method is set up directly from Google: category (required) The name [...]

Tags ,
Web development

For JavaScript Disabled: Simple <noscript> Solution

For the 1 – 2% of users that might have JavaScript turned off there is a simple <noscript> css solution. This is somewhat better than a forced redirect which could interfere with search engine optimization. In the head section, add a <noscript> tag that hides the main content or a section of the main content. [...]

Tags