G
Guest
I'm at a loss here...
My FormView control automatically performs a databind at each postback on
the server. But in some cases I don't want this to happen. Like when the
business layer decides that some of the information in the controls cannot be
accepted. But then the FormView binds to the datasource again, and the input
in all contols is lost. And the user will have to type it all over again.
In ASP.NET 1.1 we could simply say: If Not Page.IsPostBack Then DataBind()
And the ViewState would take care of the rest.
How can I do this in ASP.NET 2.0?
My FormView control automatically performs a databind at each postback on
the server. But in some cases I don't want this to happen. Like when the
business layer decides that some of the information in the controls cannot be
accepted. But then the FormView binds to the datasource again, and the input
in all contols is lost. And the user will have to type it all over again.
In ASP.NET 1.1 we could simply say: If Not Page.IsPostBack Then DataBind()
And the ViewState would take care of the rest.
How can I do this in ASP.NET 2.0?