What is the difference between ResolveUrl and ResolveClientUrl?

Viewed 55323

I have been using ResolveUrl for adding CSS and Javascript in ASP.NET files.

But I usually see an option of ResolveClientUrl. What is the difference between both?

When should I use ResolveClientUrl?

5 Answers

Using Page.ResolveUrl is better if you are trying to get a Javascript friendly Url.

Like if you are opening an iframe from the parent page, you would need a full url that would be passed to the iframe src property.

Related