P
Paul
I have 2 SQLDataSources attached to 2 Gridviews.
The user can select 2 radio buttons. Depending on which is chosen, one of
the gridviews is hidden (i.e. gv.Visible = false") and one is displayed.
My question: Are both SQLDataSource Queries actually executed regardless of
whether they are hidden or not?
In VS2005, I set a breakpoint on the Selected event of the SQLDataSource. It
only gets hit if they select 1 specific radio button - not both of them.
This leads me to believe that both queries do NOT get run every time, and
the Visible property of the Gridview determines with the SQLDataSource is run
or not.
That seems odd to me. But could someone confirm?
TIA
The user can select 2 radio buttons. Depending on which is chosen, one of
the gridviews is hidden (i.e. gv.Visible = false") and one is displayed.
My question: Are both SQLDataSource Queries actually executed regardless of
whether they are hidden or not?
In VS2005, I set a breakpoint on the Selected event of the SQLDataSource. It
only gets hit if they select 1 specific radio button - not both of them.
This leads me to believe that both queries do NOT get run every time, and
the Visible property of the Gridview determines with the SQLDataSource is run
or not.
That seems odd to me. But could someone confirm?
TIA