I am currently having trouble finding a way to call ResolveClientUrl in the context of a static web method inside an ASP.Net web form page.
I use jQuery Ajax calls to interact with WebForms as described here: http://encosia.com/using-jquery-to-directly-call-aspnet-ajax-page-methods/ , so WebMethod should be static. The problem is that in WebMethod I need to create a URL and add a query string to it, and I would like to play it safe and pass it through ResolveClientUrl before adding the query string.
Is there any way around this or making .Net an alternative static method that does more or less the same thing?
source
share