function stupid

Results 1 to 4 of 4

Thread: function stupid

  1. #1
    Function Sick Guest

    Default function stupid

    Having trouble with this function. Says there is a problem with the Response.Redirect<BR>Thank you in advance for all your help and advice.<BR><BR><BR><BR><BR>Function MemberIdent(SecurityLevel)<BR>Set Con = Server.CreateObject("ADODB.Connection")<BR>Con.Ope n application("pmisconn")<BR><BR>Set membercommand = Server.CreateObject("ADODB.Command")<BR>membercomm and.CommandType = adCmdStoredProc<BR>membercommand.CommandText = "MemberIdent"<BR>Set RS = membercommand.Execute()<BR>if RS.EOF then<BR> Select Case MemberIdent("SecurityLevel")<BR> If MemberIdent(SecurityLevel) = 1 then <BR> Response.Redirect(./PMIS/pm.asp)<BR> end if <BR> Case <BR> If MemberIdnet(SecurityLevel) = 2 then<BR> Response.Redirect(./PMIS/engineer.asp)<BR> end if <BR> Case <BR> If MemberIdent(SecurityLevel) = 3 then<BR> Response.Redirect(./PMIS/management.asp)<BR> end if <BR> end select<BR>RS.MoveNext<BR> con.Close<BR> set con = nothing<BR>end function<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: function stupid

    There is! Your line reads <BR>Response.Redirect(./PMIS/engineer.asp) <BR>try<BR>Response.Redirect(../PMIS/engineer.asp)<BR><BR>Changing dirs requires 2 . not 1.

  3. #3
    Function Stupid Guest

    Default This is the error message I keep recieving...

    Expected identifier<BR>/pmis/functions.asp, line 34, column 19<BR>this is the line that has the issue..<BR><BR>Response.Redirect(../PMIS/pm.asp)<BR><BR>Thanks in advance for all advice and help.<BR>

  4. #4
    Join Date
    Dec 1969
    Los Angeles, CA

    Default Function is NOT stupid

    do you think you should use "<BR><BR>Response.Redirect("../PMIS/management.asp")<BR><BR>secondly i am not sure but dont you have to set the ActiveConnection for the command object<BR>

Posting Permissions

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