-3
我正在更新來自SQL中的代碼隱藏更新表的表單值。如何再次調用窗體或刷新它以查看代碼隱藏更新的更改?如何在點擊事件後重新加載頁面vb.aspx
cn.Open()
Dim nusa3 As String = "update nfl set e1ve2='" & uno & "', e2ve1='" & dos & "',e3ve4='" & tres & "',e4ve3='" & cuatro & "',e5ve6='" & cinco & "',e6ve5='" & seis & "',e7ve8='" & siete & "',e8ve7='" & ocho & "',e9ve10='" & nueve & "',e10ve9='" & diez & "',e11ve12='" & once & "',e12ve11='" & doce & "',e13ve14='" & trece & "',e14ve13='" & catorce & "',e15ve16='" & quince & "',e16ve15='" & dieciseis & "',e17ve18='" & diecisiete & "',e18ve17='" & dieciocho & "',e19ve20='" & diecinueve & "',e20ve19='" & veinte & "',e21ve22='" & veintiuno & "',e22ve21='" & veintidos & "',e23ve24='" & veintitres & "',e24ve23='" & veinticuatro & "',e25ve26='" & veinticinco & "',e26ve25='" & veintiseis & "',e27ve28='" & veintisiete & "',e28ve27='" & veintiocho & "',e29ve30='" & veintinueve & "',e30ve29='" & treinta & "',e31ve32='" & treintayuno & "',e32ve31='" & treintaydos & "' where userid=" & ide & ""
Dim cmd3 As New OleDbCommand(nusa3, cn)
cmd3.ExecuteScalar()
cn.Close()
Response.Redirect("detalles.aspx")
你應該做的是非常依賴於上下文。我們需要查看一些相關的代碼來了解您的頁面的結構。 – ADyson
我需要刷新頁面或重新加載它 –
該查詢會影響表單中的某些輸入框,以及如何根據新的數據庫值反映更改! –