C# Tips


アプリケーションのpathを取得するには


ASP.NETでアプリケーションのpathを取得するにはRequest.PhysicalApplicationPathを利用します。
URLではなく、コンピュータ上の物理的なpathが返されます。
this.Label1.Text = Request.PhysicalApplicationPath;


目次に戻る
Copyright(c) 2008 WoodenSoldier Software