ViewState, FormView and controls

How do you (in Visual Studio) compare controls in different templates on a form so you can track down the ViewState error?

+1


source to share


2 answers


I ended up putting copies of each control in all three templates. If I didn’t use the control in this template, I would just put it in a PlaceHolder control with its visibility FALSE. These unused controls only have the required attributes not associated with them.



0


source


I know that you can use the ChangeMode method in the Asp: DetailsView control to set the mode and for which this template is used on the client side.

I think you can do the same with FormView.



You can set the mode explicitly on the client side, or set it as a result of server side actions.

0


source







All Articles