Category: Knowledge Base

How to detect if the visitor of a website is running Windows Vista

Different languages have different ways of getting information about the visitors. However, most languages can get the User Agent, which provides us, the webmasters, with information about the visitor’s browser, plugins and operating system. For example if the user agent of a visitor is: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322) Windows […]

How to detect if the visitor of a website is using Internet Explorer 7 Beta 1

Looking at the user agent we get information about the visitors, such as the operating systems they are running, browsers they are using, or what version of .NET Framework they have installed. The user agent is retrieved differently depending on the programming language you are using for your website. Since Internet Explorer 6.0 is the dominant browser, […]

Using EnsureVisible() to scroll down to the bottom of a ListView

You can easily programatically scroll to the bottom of a ListView using the EnsureVisible() method. This method takes 1 parameter – the index of the ListViewItem that you want to ensure visibility for. The trick to keep the ListView scrolled down is to use the EnsureVisible() method every time a new item is added to the list, and pass that item’s index as a parameter. […]

XmlException: Root element is missing

The cause of the XmlException entitled Root element is missing means the XML document you’re trying to load is not formatted properly, more exactly it’s missing the root node.Each XML file must have a root element / node which encloses all the other elements. The following is an example of an XML file which is not properly formed: And […]

Back To Top