HTTP is a stateless protocol and, as a result, every request you make to your server should rebuild the object’s schedule if you don’t save it somewhere. There are many ways to save data through a web session. In ASP.NET you can store data in cookies, on the server side, in the view, in form variables, etc.
CurrentCoral , Page_Load
dbQuery.Detach(CurrentCoral)
, .
Me.ViewState.Add("CurrentCoral", CurrentCoral)
-, , .
CurrentCoral = CType(Me.ViewState("CurrentCoral"), Coral)
dbQuery.Attach(CurrentCoral)
CurrentCoral.CommonName = strName
dbQuery.SaveChanges()
. VB.NET - ! Entity Framework . .