PRB: Page.ResolveUrl Method Does Not Return Path in ASP.NET 1.1 (811641)
The information in this article applies to:
- Microsoft ASP.NET (included with the .NET Framework 1.1)
Beta Information This article discusses a Beta release of a Microsoft
product. The information in this article is provided as-is and is subject to
change without notice.
No formal product support is available from
Microsoft for this Beta product. For information about how to obtain support
for a Beta release, see the documentation that is included with the Beta
product files, or check the Web location from which you downloaded the release.
SYMPTOMSWhen you specify a Web Page while calling the Page.ResolveUrl method, the ResolveUrl method does not return the relative path of the page. This
problem occurs in ASP.NET version 1.1. However, this problem does not occur in
ASP.NET version 1.0.CAUSEThis problem occurs because the behavior of the ResolveUrl method of the Page class has been changed in Microsoft .NET Framework version 1.1
from the behavior in version 1.0.
Web Controls use the ResolveUrl method to resolve the URL. In ASP.NET version 1.1, when the RelativeUrl parameter contains an absolute URL, the ResolveUrl method returns the URL unchanged.WORKAROUNDTo work around this problem, use the Page.Server.MapPath property to retrieve the path of the Web page.STATUS This
behavior is by design.REFERENCESFor more information, visit the following Microsoft Web
site:
Modification Type: | Minor | Last Reviewed: | 5/12/2003 |
---|
Keywords: | kbWebForms kbControl kbweb kbusage kbprb KB811641 kbAudDeveloper |
---|
|