What is difference between ResolveUrl and ResolveClientUrl ? Which do you prefer to use?

 Posted by Bhakti on 11/17/2009 | Category: ASP.NET Interview questions | Views: 7961

ResolveUrl - Returns URL relative to the site root using control’s TemplateSourceDirectory property.

ResolveClientUrl – Returns URL relative to the folder containing the source file in which the control is instantiated.

I would prefer to use ResolveUrl as URL returned can be used anywhere in the site to make it work correctly.

Bhakti Shah

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response