Dylan
Dylan

Reputation: 31

Trailing slash confusing AJAX

I have a page with several Update Panels on it. the url of that page is: http://[domainnamehere]/stores/

If I omit the trailing slash, everything works fine. if I include it, when the page does an asynchronous postback, it goes to http://[domainnamehere]/stores/stores

Not sure why that's happening, but its sure a pain in the butt! Any suggestions would be most welcome.

Upvotes: 1

Views: 687

Answers (1)

marteljn
marteljn

Reputation: 6516

Your problem is on the server-side. You need to configure the route to your resource to accept the trailing slash. If you are using MVC you should be able to add a slash to that route, if not it will require URL rewriting at the IIS level.

Upvotes: 2

Related Questions