Thursday, May 28, 2009

Resolveurl - Url Rewriting - Point to root directory

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:

Anonymous said...

Thanks man, you solved my problem, which i was trying to fix from last 2 hours.

Most Recent Post

Subscribe Blog via Email

Enter your email address:



Disclaimers:We have tried hard to provide accurate information, as a user, you agree that you bear sole responsibility for your own decisions to use any programs, documents, source code, tips, articles or any other information provided on this Blog.
Page copy protected against web site content infringement by Copyscape