Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to not process invisible controls?

Status
Not open for further replies.

iwease

IS-IT--Management
Sep 4, 2006
104
CA
I have created a tab control that causes a postback. Only one tab is visible at a time but all the tabs contain datagrids and man other controls. All the controls within the invisible tabs are processed even though it is not necessary....is there a way to prevent this from happening (eg, when a tab is invisible, don't automatically databind, etc)
 
Yes - don't set the DataSource property or call the DataBind event unless the control is going to be visible.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
hmmm...yeah..I was afraid that would be the only way. The problem is, my tabs are in panels and I don't really know what's in them....I guess I will just search through their child controls until i find gridviews
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top