Prevent ObjectDataSource/GridView from DataBinding

  • Thread starter Thread starter richardl
  • Start date Start date
R

richardl

I am creating an interface that has a number of ObjectDataSources and
GridViews in UpdatePanels.

The data being sent to the gridviews in quite large (search results,
etc..) and therefore each gridview load can take 3 or 4 seconds.

Therefore, I have set the UpdatePanels mode to be conditional, as I
only want to refresh certain parts of the page for different events.

However, what I am noticing is that even though I am only electing to
update them individually the actually ALL DataBind everytime there is
a postback for ANY of them, which is making the pageload very slow.

Is there any was to make the DataBind for each ObjectDataSource
conditional?
 
In onLoad, only use databind if not IsPostBack

Enable Viewstate on them...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top