Calling Page.DataBind invokes the page-level method. The
page-level method in turn calls the DataBind method of every control on the
page that supports data binding. Instead of calling the page-level DataBind,
call DataBind on specific controls. Both approaches are shown in the following
examples.
The following line calls the page level DataBind. The page
level DataBind in turn recursively calls DataBind on each control.
Listing 9
The following line calls DataBind on the specific control.
Listing 10
yourServerControl.DataBind();