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?
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?
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.