SharePoint :: Using SharePoint Designer Display SQL Server Rows (via ASP.NET Control)

SharePoint :: Using SharePoint Designer Display SQL Server Rows (via ASP.NET Control)

上一篇 SharePoint :: Using SharePoint Designer Display SQL Server Rows (via Data Form Web Part) 提到使用 Data Form Web Part 的方式來顯示 SQL 資料庫的資料,本篇使用 ASP.NET 控制項

主要步驟有:

  1. 新增一個 ASPX 頁面,並插入【其他 ASP.NET 控制項】,以便選取 DataView
  2. 新增 Data View,並新增資料來源
    • 若資料來源使用整合驗證會發生不允許連線字串含有關鍵字 Integrated Security & Trusted_Connection 之錯誤,得使用資料庫驗證 ;
    • 在 SQL 中記得要加上 Schema,否則會發生物件名稱無效
  3. 編輯 Data View layout,並將頁面儲存在文件庫中,即可瀏覽

SPDandDB-21

SPDandDB-22

SPDandDB-23

SPDandDB-24

SPDandDB-25

SPDandDB-26

SPDandDB-27

SPDandDB-28

SPDandDB-29

SPDandDB-30

SPDandDB-31

SPDandDB-32

SPDandDB-33

SPDandDB-34

SPDandDB-35

SPDandDB-36

SPDandDB-37

SPDandDB-38

SPDandDB-39

SPDandDB-40

SPDandDB-41

SPDandDB-42

SPDandDB-43