You will probably have to add the reference to this at the top
<font size="2" color="#0000ff"><font size="2" color="#0000ff">
Imports
</font></font><font size="2" color="#0000ff">
</font>
System.IO
<font size="2" color="#0000ff"><font size="2" color="#0000ff">
Imports
</font></font><font size="2" color="#0000ff">
</font>
System.Xml
This is for asp.net and not classic ASP
Here is the functions that run it.
(If you do not have a asp.net developer application go to www.microsoft.com/express and download Visual Web Developer It's Free)
On the ASP.Net page add a button called button1 and a textbox called textbox1 and a label called label1
then the code behind is this
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
objectid = returnobjectid("CiscoUCserver", "", textbox1.text, True)
If objectid.Substring(0, 1).ToLower = "z" Then
Label1.Text = "Update Failed: " & objectid.Substring(1, objectid.Length - 1)
Label1.ForeColor = Drawing.Color.Red
Label1.Visible = True
Return False
Else
'Reset the password
objectid = resetconnectionpassword(objectid, "CiscoUCserver")
If objectid.Length >= 3 Then
If objectid.Substring(0, 3) = "200" Then
Label1.Text = "Update Successful"
Label1.ForeColor = Drawing.Color.Black
Label1.Visible = True
Return True
Else
Label1.Text = "Update Failed: " & objectid
Label1.ForeColor = Drawing.Color.Red
Label1.Visible = True
Return False
End If
End If
End If
End Sub