1

I have a web service at:

/localhost/portal/ WebServices/InformationNoticeUtility.asmx/InformationNoticesGet

when user goes to another page for example:

/localhost/portal/Reporting/

and tries to call this web service using jquery Ajax, it will fail because jquery replaces the url of the web service to the following url:

/localhost/portal/Reporting/ WebServices/InformationNoticeUtility.asmx/InformationNoticesGet

Is there any way I could pass in an object to overcome this error?

Farhad-Taran
  • 6,282
  • 15
  • 67
  • 121

1 Answers1

0

Seeing your code would help, but do you have a <base> tag on your page? If so, that may be causing your unexpected results. If not, you may actually desire that behavior and might want to try it.

See here for a good discussion of caveats.

Community
  • 1
  • 1
Jerph
  • 4,572
  • 3
  • 42
  • 41