Tuesday , 19 March 2024
HOT

Tag Archives: Request.Url

Request URL trong asp.net

Giả sử bạn có link web của bạn có dạng sau đây http://localhost:2000/virtual_dir/myrep/page.aspx?q=qvalue Bạn muốn lấy một phần của link thôi, nhưng trong Request.Url có quá nhiều thuộc tính, ví dụ sau đây sẽ cho biết kết quả trả về của các thuộc tính. Request.ApplicationPath : /virtual_dir Request.CurrentExecutionFilePath : /virtual_dir/myrep/page.aspx Request.FilePath : /virtual_dir/myrep/page.aspx Request.Path : /virtual_dir/myrep/page.aspx Request.PhysicalApplicationPath : d:\Inetpub\wwwroot\Websitename\virtual_dir\ Request.QueryString ... Read More »