PDA

View Full Version : databinding using ajax problem


garypayton
12-12-2005, 02:21 AM
I use ajax to the client UI. But when we callback we need to databind the control value to DataModel. But now you write code as if (dataBinder.IsDataBound && IsPostBack)
{
dataBinder.UnbindData();
OnDataUnbound(EventArgs.Empty);
} you know callback submit will not change IsPostBack to true, so we can not data bind our control value to data entity. And when i try to override or do something else, I found dataBinder in base class is asserting private. I think here we can use protected variable.