0
Partial Class ClientCenter_UpdateSub
Inherits System.Web.UI.Page
Structure PInfo
Dim Name As String
Dim Surname As String
End Structure
Dim OldPInfo As New PInfo
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not IsPostBack Then
'blah blah
OldPInfo.Name = Dt.Rows(0).Item("Name").ToString
OldPInfo.Surname = Dt.Rows(0).Item("Surname").ToString
end if
end sub
End Class
처음으로 구조체가로드 될 때 처음으로 구조체가 올바르게 채워집니다. AJAX 포스트 백 후에 모든 구조 필드가 아무 것도 설정하지 않습니다. (Dim OldPInfo As New PInfo
이 다시 호출 된 것 같습니다.)하지만 SO 전문가에게 더 잘 문의해야합니다.AJAX 포스트 백에 데이터 구조 유지
어쨌든 여기서 내가 뭘 잘못하고 있니?