Resolve Url Path Problem, while working with Url Rewriting in asp.net
Whenever you are working with Url Rewriting, you might be interested in pointing to root directory for page been rewritten or for page which physically doesn't exist.
Example:
Url Rewritten Page: http://www.DailyFreeCode.com/Article/Example-To-Upload-Image-In-Asp-Net-4.aspx
This path doesn't exist and you are interested in finding physical path, so that you can able to point the available download with this article.
You can solve this problem with ResolveUrl() function.
ResolveUrl() Function can prove as angel to solve some of complex problem related to asp.net paths.
My earlier post had solve the problem in displaying image on master page, this can be helpful in case where you can't able to find solution with usual method.
1 comment:
Thanks man, you solved my problem, which i was trying to fix from last 2 hours.
Post a Comment