-1

I have a simple VBScript function written as:

Function check(a, b)
    response.Write(a)
End Function

Now when I call this function as

<%
check(1, 2)
%>

Here I get a error as

An error occurred on the server when processing the URL

The funny thing is if I change the function to get only a single parameter, it works fine. The only problem is when I put in multiple parameters in the function. This seems so simple yet I can't figure out why this error is occurring.

Ansgar Wiechers
  • 193,178
  • 25
  • 254
  • 328
Raxak
  • 389
  • 3
  • 17

1 Answers1

2

Oh. It seems when I want to call a function with multiple parameters I got do it as follow:

Call check(a,b)

or

check a,b

I took the reference from here. stackoverflow question

Community
  • 1
  • 1
Raxak
  • 389
  • 3
  • 17