我有一個asp.net 4.0 gridview,它顯示我的數據庫屬性。我添加了一個按鈕來更新數據庫。我想在用戶單擊這些按鈕時轉到另一頁面以添加一些值。如何通過單擊按鈕轉到另一個頁面,如anotherpage.aspx?gridview連接另一個頁面的按鈕
感謝
我有一個asp.net 4.0 gridview,它顯示我的數據庫屬性。我添加了一個按鈕來更新數據庫。我想在用戶單擊這些按鈕時轉到另一頁面以添加一些值。如何通過單擊按鈕轉到另一個頁面,如anotherpage.aspx?gridview連接另一個頁面的按鈕
感謝
爲什麼不能做到這一點:
Response.Redirect("page.aspx")
(OR)做這個
Server.Transfer("page.aspx",)
這可能對您有用:http://stackoverflow.com/questions/10185775/Retrieving-and-displays-dynamic-content-from-sql-database-into-asp-net-pages/10186235#10186235 –