原创 asp.net爲什麼界面中的值改變了代碼讀取的還是之前的值?
Page_Load事件的特性: 無論頁面的其它任何事件執行時都會先執行Page_Load事件。 因此,當加載頁面並對控件的更改屬性進行處理之前,應該先在Page_Load事件中檢查該頁面是否爲被傳遞迴的頁面,即
原创 GridView索引超出範圍。必須爲非負值並小於集合大小。 DataKeys(e.RowIndex).Value 參數名: index
GridView1.DataKeys[e.RowIndex].Value.ToString() 必須爲非負值並小於集合大小 參數名:index 必須爲非負值並小於集合大小 參數名:index 報錯在:GridView1.DataKey
原创 VB.NET中使用委託
轉載自https://blog.csdn.net/dzweather/article/details/51533259
原创 The directory '/App_Code/' is not allowed because the application is precompiled
FTP 上傳出現錯誤 : The directory '/App_Code/' is not allowed because the application is precompiled. 解決方法: 這樣的錯誤通常是由於網站是發佈後上傳