<%@ Language=VBScript %> <% Response.Buffer = true Response.Clear Response.Expires = 0 %> ASP Tutorial: Ad Rotator Demonstration

Lesson 2: A Demonstration of the Browser Capabilities Component

<% Set objBrowser = Server.CreateObject("MSWC.BrowserType") If objBrowser.browser = "IE" and objBrowser.majorver = "4" Then %>

Your Web browser is Internet Explorer version 4.0, or later. This means that you are seeing a Dynamic HTML ad rotator.

<% Else %>

Your Web browser is not Internet Explorer version 4.0, or later. This means that you are seeing a static image displayed using the ASP Ad Rotator component. (Refresh this page to see a new image.)


<% Set Ad = Server.CreateObject("MSWC.Adrotator") %>
<%= Ad.GetAdvertisement("/iishelp/iis/htm/tutorial/adrot.txt") %>
<% End If %>

Return to Module 2.



The names of companies, products, people, characters and/or data mentioned herein are fictitious and are in no way intended to represent any real individual, company, product or event unless otherwise noted.