1
沒有得到價值我使用會話和會話在會議
Dim row = grid_transfer.Rows(Convert.ToInt32(e.CommandArgument))
hid_refno = CType(row.FindControl("hid_refno"), HiddenField)
Session("refno") = hid_refno.Value
分配隱藏字段的值,但它沒有顯示在會議
沒有得到價值我使用會話和會話在會議
Dim row = grid_transfer.Rows(Convert.ToInt32(e.CommandArgument))
hid_refno = CType(row.FindControl("hid_refno"), HiddenField)
Session("refno") = hid_refno.Value
分配隱藏字段的值,但它沒有顯示在會議
若要在頁面中,我們必須使用使用會話值值
session("refno").tostring();
那麼它會顯示已分配value.`
所以,你必須調試的代碼來驗證'hid_refno.Value' CONTA插入一些東西,然後一行'Session(「refno」)'返回'Nothing'?我對此表示懷疑。 Mabye你在某處覆蓋了這個值,但是你沒有顯示那個代碼。你在哪裏分配它,你在哪裏閱讀它? –