Here's my situation, in brief: we're using ASP.NET 2.0, and
we've
incorporated the Ajax Toolkit library. On one of our
important pages,
we're using the ajaxToolkit:TabContainer control to several
different
by related datasets, each on their own tab.
With fully 6 tabs on the page, each of which has a GridView
that's
(pretty efficiently) showing 20 rows of data retrieved from
SQL
Server, it starts to bog down pretty quickly. Each GridView
is bound
to an ObjectDataSource which performs a bit of logic and
then makes a
call into a related API to fetch the data. However with
each
postback, each of the ObjectDataSources' Select methods are
being
invoked.
My basic question is: is there a way I can take over control
of the
DataBinding sequence in a way that I manually keep track fo
which
tab's controls need to be bound and invoke it selectively?
That is,
it seems to me that every control is re-bound every time,
when by
definition only one out of the six is displayed (and even
that one may
not need to be re-bound in many cases). I don't want
page-level D-
binding to take place; I want to instruct only the active
tab to do
its thing as I see fit.
This feels like a situation when the architecture has
provided so much
infrastructure that I no longer have any idea how things
are
happening, or why. I tried to override the DataBind method
on the
page, and in my override I did NOT call the base method,
hoping that
would effectively squash the automatic page-level binding,
but it
carries on normally anyway. What am I missing?
Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "ASP.Net Community" group.
To post to this group, send email to aspnet googlegroups.com
To unsubscribe from this group, send email to
aspnet-unsubscribe googlegroups.com
For more options, visit this group at http://gr
oups.google.com/group/aspnet?hl=en
-~----------~----~----~----~------~----~------~--~---
|