Using ASP Intrinsic Objects from within COM Component
Tutorials Shared by the Internet Community
|Top Tutorials||New Tutorials||Submit||Login||Register|
Total Hits: 18698
Total Votes: 144 votes
Submitted on: 2008-03-05 00:38:00
Submitted By: Devesh Khanna
Description:Our objective in this tutorial is simply to make five ASP Intrinsic Objects available to our COM component. We will then use them as easily as we use them in our ASP pages. In this tutorial we will only use Request Object but the procedure for using other ASP Objects is the same.
Our component this time will consist of two methods, IsIE and IsNS. IsIE will check to see if the browser used by the client is Microsoft Internet Explorer or not. If it is Microsoft Internet Explorer then it will return true and otherwise false. Same is the case with IsNS which will detect Netscape Navigator, returning true it browser is Netscape and false if it isn't.
Our component will only work with IIS4 / PWS 4 or above. More detail...