Senin, 20 Desember 2010
Resolving an App-Relative URL without a Page Object Reference
If you've worked with ASP.NET before then you've almost certainly seen an application-relative URL like ~/SomeFolder/SomePage.aspx. The tilde at the beginning is a stand in for the application path, and it can easily be resolved using the Page object's ResolveUrl method: string url = Page.ResolveUrl("~/SomeFolder/SomePage.aspx");There are times, however, when you don't have a page object
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar