Questions tagged [resolveclienturl]

5 questions
19
votes
4 answers

ASP.Net C# ResolveClientUrl inside Class

I have the following code: public class NavigationPath { private string menuItems = "
  • " + "home" + "
  • "; But I would like to have: public class…
    Marco
    • 1,272
    • 6
    • 22
    • 33
    5
    votes
    1 answer

    ASP.NET: How to get the virtual path of a file from a generic handler?

    How can i resolve a virtual path to a file into a path, suitable for the browser, from within a generic .ashx handler? e.g. i want to convert: ~/asp/ClockState.aspx into /NextAllowed/asp/ClockState.aspx If i were a WebForm Page, i could call…
    Ian Boyd
    • 246,734
    • 253
    • 869
    • 1,219
    1
    vote
    2 answers

    ResolveClientUrl inside runat server head

    I'm working on a web form site. The head tag has the runat server attr. in the master page. I'm trying to use ResolveClientUrl for a .js file like this: ..