How to find all controls by type on an ASP.NET page

by Michael Dunbar Thursday, September 2, 2010 08:39
Following is how to get a collection of controls by control type from an ASP.NET web form. In the example I am getting all text box controls from a page, but you can apply this to any control type and... [More]

Filed under: ASP.NET | C#

Change the CSS class of a HTML element using JavaScript

by Michael Dunbar Wednesday, September 1, 2010 09:03
We are now going to use the ability to get a CSS class from a HTML element, or the getClassName() function, and extend the functionality to allow us to change the CSS class of a HTML element. This fun... [More]

Filed under: JavaScript

Get HTML elements by CSS class using JavaScript

by Michael Dunbar Tuesday, August 31, 2010 15:53
To turn the post about getting a CSS class from a HTML element using JavaScript on its head, here is how to get a HTML element by CSS class using JavaScript: function getElementsByClass(searchClass, ... [More]

Filed under: JavaScript

Get the version of Internet Explorer using JavaScript

by Michael Dunbar Tuesday, August 31, 2010 14:53
In a previous post about getting a CSS class from a HTML element using JavaScript I promised to explain how to get the version of Internet Explorer. Here is how it can be done: function getIEVersionN... [More]

Filed under: JavaScript

Conditional comments for CSS cross browser compatibility

by Michael Dunbar Tuesday, August 31, 2010 09:20
Writing standard compliant CSS will make your web pages appear more or less the same across most modern web browsers. However, despite increased effort on behalf of the browser developers, there are s... [More]

Filed under: CSS | HTML