ASP Invalid Syntax

Results 1 to 2 of 2

Thread: ASP Invalid Syntax

  1. #1
    Join Date
    Dec 1969

    Default ASP Invalid Syntax

    Can someone tell me why I get an invalid syntax error (800401e4) on the line in the following code.<BR><BR>Set User = GetObject("WinNT://" & strdomain & "/" & username & ",user")<BR><BR>I have tried several different ways but always get the error. Thanks.<BR><BR><BR><BR><BR>&#060;%<BR><BR>Dim newpasswd, confirmnewpasswd, oldpasswd, username, strdomain<BR><BR>newpasswd = Request("newpasswd")<BR><BR>confirmnewpasswd = Request("confirmnewpasswd")<BR><BR>username = Request("username")<BR><BR>strdomain = "dhbwinnt"<BR><BR>Dim User<BR><BR>if newpasswd = confirmnewpasswd then<BR><BR> Set User = GetObject("WinNT://" & strdomain & "/" & username & ",user")<BR><BR> User.ChangePassword "oldpasswd", "newpasswd"<BR><BR> User.SetInfo<BR><BR> Set User = Nothing<BR><BR>else<BR><BR> Response.Write("New password doesn’t match with confirm password. Click on back to try again.")<BR><BR>end if<BR><BR>%&#062;<BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default Is the server running under..

    .. an admin account?<BR><BR>It must be.<BR><BR>Also, check the password - chances are it threw an error but actually changed their password.<BR><BR>-Doug

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts