ViewState["prevUrl"] = Request.UrlReferrer.ToString();

ylw1125 發表在 痞客邦 留言(0) 人氣()

假設我們的網址為http://demo.tc/Default3.aspx?id=1019&uu=77

  1. Request.ApplicationPath
  2. //output:/
  3. Request.PhysicalPath
  4. //output:磁碟機代號:\父目錄\子目錄\Default3.aspx
  5. System.IO.Path.GetDirectoryName(Request.PhysicalPath)
  6. //output:磁碟機代號:\父目錄\子目錄
  7. Request.PhysicalApplicationPath
  8. //output:磁碟機代號:\父目錄\子目錄\
  9. System.IO.Path.GetFileName(Request.PhysicalPath)
  10. //output:Default3.aspx
  11. Request.CurrentExecutionFilePath
  12. //output:/Default3.aspx
  13. Request.FilePath
  14. //output:/Default3.aspx
  15. Request.Path
  16. //output:/Default3.aspx
  17. Request.RawUrl
  18. //output:/Default3.aspx?id=1019&uu=77
  19. Request.Url.AbsolutePath
  20. //output:/Default3.aspx
  21. Request.Url.AbsoluteUri
  22. //output:http://demo.tc/Default3.aspx?id=1019(這是上一頁的網址)
  23. Request.Url.Scheme
  24. //output:http
  25. Request.Url.Host
  26. //output:demo.tc
  27. Request.Url.Port
  28. //output:80
  29. Request.Url.Authority
  30. //output:demo.tc
  31. Request.Url.LocalPath
  32. //output:/Default3.aspx
  33. Request.PathInfo
  34. //output:
  35. Request.Url.PathAndQuery
  36. //output:/Default3.aspx?id=1019&uu=77
  37. Request.Url.Query
  38. //output:?id=1019&uu=77
  39. Request.Url.Fragment
  40. //output:
  41. Request.Url.Segments[0]
  42. //output:/
  43. Request.Url.Segments[1]
  44. //output:Default3.aspx

ylw1125 發表在 痞客邦 留言(0) 人氣()

protected void GridView1_Sorting(object sender, GridViewSortEventArgs e)
{

ylw1125 發表在 痞客邦 留言(0) 人氣()

using System;
using System.Collections.Generic;

ylw1125 發表在 痞客邦 留言(0) 人氣()

using System;
using System.Collections.Generic;

ylw1125 發表在 痞客邦 留言(0) 人氣()

using System;
using System.Collections.Generic;

ylw1125 發表在 痞客邦 留言(0) 人氣()

卡路里  

using System;

ylw1125 發表在 痞客邦 留言(0) 人氣()

MARS  

using System;

ylw1125 發表在 痞客邦 留言(0) 人氣()

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="listview_2.aspx.cs" Inherits="listview_2" MaintainScrollPositionOnPostback="true" %>


ylw1125 發表在 痞客邦 留言(0) 人氣()

大腸包小腸  

using System;

ylw1125 發表在 痞客邦 留言(0) 人氣()