Why ASCx disappear if clicking button to Save?

If you add controls programmatically in code, every post-back operation needs to re-create the same controls (e.g. During Page_Load) to process the post-back event (in your case, the Save button).

Dynamically added controls have no object reference variable in the codebehind class. They appear only in the control collection of the containing control, i.e. The Page.

Controls collection. When the page is posted back to the server as a result of user interaction a new instance of the codebehind class is instantiated, and all the variables of the class is set with values from the ViewState. See here.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions