I currently have an ajax custom control that makes calls to a web service as part of its functionality. I need to pass which web service to call to the control as a parameter. Currently, I'm using a string parameter in the .vb file and passing it to the javascript. I execute the calls to the web service by building a line as a string, then using eval() on it.
From here, I can see that eval is bad. Like the function calls on that page, is there any way that I can use the web service as something that I can call?
Note, I am calling methods from the web service. Instead of stringservice(parameters), it is stringservice.start(parameters). And I just get the error that strings don't have a start method.
Any solution, or am I stuck using eval? Thanks :)