I'm using a page with several panels - I instantiate an object and using Page.DataBind(); in the subroutine in the codebehind and <%# Object.Value %> in the apsx page - so far so good.
I then change the value in the object and use the same approach as above Page.DataBind(); in the subroutine in the codebehind and <%# Object.Value %> in a different panel the apsx page and I get System.NullReferenceException: and the error points to the line where I call Page.DataBind(); the second time.
I've worked around this now but I'm curious why I should get the error in the first place.
Any help much appreciated
I then change the value in the object and use the same approach as above Page.DataBind(); in the subroutine in the codebehind and <%# Object.Value %> in a different panel the apsx page and I get System.NullReferenceException: and the error points to the line where I call Page.DataBind(); the second time.
I've worked around this now but I'm curious why I should get the error in the first place.
Any help much appreciated