VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



ASP sample of Registry Access component

by Yuening Dai (30 Submissions)
Category: Active Server Pages
Compatability: ASP (Active Server Pages)
Difficulty: Unknown Difficulty
Originally Published: Mon 16th October 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)

ASP sample of Registry Access component

Rate ASP sample of Registry Access component



<HTML>
<HEAD>
</HEAD>
<TITLE>ASP 2.0 Demo - Registry Access Component</TITLE>
<BODY>
<H2>ASP 2.0 Demo - Registry Access Component</H2>
<HR>
The <B>Registry Access</B> component provides access to the registry on a local or remote computer.
<P>
<HR>
<P> 
 <%
  Dim objRegAccess
  Dim strIEVersion
  On Error Resume Next
  Set objRegAccess=Server.CreateObject("IISSample.RegistryAccess")
  If IsObject(objRegAccess)=False Then
    Response.Write "The Registry Access component object can not be created at this time. "
    Response.Write "Either you do not have this component on the server machine or it "
    Response.Write "is not installed properly."
    Response.Write "You may try to fix this problem by installing IIS Resource Kit."
  Else
    Response.Write "The Registry Access component object is created successfully !<P>"
    strIEVersion=objRegAccess.Get("HKLM\Software\Microsoft\Internet Explorer\Version Vector\IE")
Response.Write("Internet Explorer version - " + strIEVersion)
Response.Write("<P>")
If Trim(strIEVersion) <> "" Then
  Response.Write("You got something useful !")
End if
  End if
 %>
</BODY>
</HTML>


Download this snippet    Add to My Saved Code

ASP sample of Registry Access component Comments

No comments have been posted about ASP sample of Registry Access component. Why not be the first to post a comment about ASP sample of Registry Access component.

Post your comment

Subject:
Message:
0/1000 characters