From: Andy B. on 22 Mar 2010 05:16 There is also the ObjectDataSource.DataBinding event that fires just before the datasource is bound to a control. You can do any checks, canceling or filtering here if you want. "Andy O'Neill" <aon14nocannedmeat(a)lycos.co.uk> wrote in message news:XIrpn.64942$0t.17085(a)newsfe17.ams2... > > "3P" <nospam(a)serwer.pl> wrote in message news:op.u9r7cbkymsp0fz(a)mcs... >>I would like to create a very simple form. >> >> When client enters it he has a filter to set. Then push the button get >> the data and display in GridView. > > Stick a parameter on your objectdatasource. > You can connect that up to whatever control you use to define the filter. > Make the initial selection something won't return anything. > OK it "hits your database" first time off but returns nuthin. > > Or have your objectdatasource set up like this but only connect it to your > grid on first postback. >
First
|
Prev
|
Pages: 1 2 3 4 Prev: Invoke method after a regular time interval Next: Million Dollar Homepage Script |