How to resolve URL to absolute path when you don’t have access to page(cheraq.com)

submitted by mostafafnmostafafn(50) 2 years ago

Sometimes you need to resolve URL, but you don’t have the Page.ResolveUrl() function in your context. One example is in the Web Service or Handlers. A real world example could be you have a web service that will do data binding for a grid, and you need to generate edit/preview links for grid items, so you need to convert “~/path-to-data.aspx” to something such as “/Website/path-to-data.aspx”, so you need to know what the virtual path of the current application is.

add a comment |category: |Views: 48

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story