KidsLovePC Contact Us
  Home   PHP  Graphics ASP  JavaScript   J2EE  HTML  JAVA   Swing   Webtip  Forums  Lyric  Free sheet music  Ringtones

The browser Capabitlities Compoent

In order to adequately support the various browsers ued by consumers, we need to determine what they are using and what the capabilities of the browser are. The HTTP_USER_AGENT returns the type of browser accessing your web page.

MSWC.BrowserType-- This component reads the Browscap.ini file located in:

windows\system32\inetsrv--Windows XP
window\system\inetsrv--Windows 95
winnt\system32\inetsrv--Windows NT

and sets various properties in the object which indicate the abilities of the browser.

Example--Determine if the user's browser supports VBscript

<%Option Explicit%>
<% Dim objBCap, blnVBScriptOK
Set objBCap = Server.CreateObject ("MSWC.BrowserType")
blnVBScriptOK = objBCap.vbscript 'save the value in a variable
If blnVBScriptOK then
Response.Write "This Browser supports VBScript"
else
Response.write "This Browser doesn't support VBScript"
end if
%>

 
ASP tutorial
What is ASP
Install IIS
VBScript or JScript
ClientSide vs ServerSide scripting
ASP execution order
Dealing with Form
More Form example
Variable &Variant
String
Local variable
Global variable
Arrays
Use if_then_else
Use Select Case
For_Next loop
Do_while loop
Subroutine vs Function
Request Object
QueryString
Count Keyword
Using QueryString
Application, Method, Events
Create Virtual Directory
Save array in Application
Session, Method, Events
Using Cookie
Server Object
Ad Rotator
Content Linker
Browser
Dictionary object
Filesystemobject Object

 

 

 

Best books about ASP & ASP.Net from Amazon
Beginning Dynamic Websites : with ASP.NET Web Matrix (Programmer to Programmer) (Paperback) Build Your Own ASP.NET Website Using C# & VB.NET (Build Your Own) (Paperback) Professional Active Server Pages 3.0 (Programmer to Programmer) (Paperback) ASP.NET Cookbook (Paperback) ASP.NET Kick Start (Paperback)

 

Printer Inkjet A Z lyricsLearn ChineseHome|PHP|Swing|HTML|JavaScript|ASP|JAVA|Forum|WebTip|Contact Us
Copyright © kidslovepc.com All rights reserved(new). Privacy|Copyright
designed by info@kidslovepc.com

Please help us cover the web site maintenance fee.
barcode scanner Thermal Printer credit card machine bar code printer