Andres Rormoser
|
Posted: 06/23/2005, 12:03 PM |
|
I'm trying to change the Where Clause of a Chackbox List inside a Record Form, in ASP i
did it without problem but now in ASP.NET i can't.
I've put the following in the BeforeExecuteSelect Event of the Checkbox List
'ListBox CuentaList Event BeforeExecuteSelect. Action Custom Code @79-73254650
' -------------------------
DirectCast(Select_,TableCommand).Where = "cancelada=0"
DirectCast(Select_,TableCommand).Operation = "AND"
' -------------------------
'End ListBox CuentaList Event BeforeExecuteSelect. Action Custom Code
The code runs without errors but that where clause is never executed into the server.
Please Help.
Thanks in advance, AR
|
|
|
Andres Rormoser
|
Posted: 06/23/2005, 12:11 PM |
|
2 secods after writing the email i realized that i was changing the Record Query and not
the Checkbox List Query!!!!
The correct code is:
DirectCast(CuentaListDataCommand ,TableCommand).Where = "cancelada=0"
DirectCast(CuentaListDataCommand ,TableCommand).Operation = "AND"
Thanks!!
"Andres Rormoser" <arormoser@witcom.com.ar> wrote in message
news:d9f11p$i8e$1@news.codecharge.com...
I'm trying to change the Where Clause of a Chackbox List inside a Record Form, in ASP i
did it without problem but now in ASP.NET i can't.
I've put the following in the BeforeExecuteSelect Event of the Checkbox List
'ListBox CuentaList Event BeforeExecuteSelect. Action Custom Code @79-73254650
' -------------------------
DirectCast(Select_,TableCommand).Where = "cancelada=0"
DirectCast(Select_,TableCommand).Operation = "AND"
' -------------------------
'End ListBox CuentaList Event BeforeExecuteSelect. Action Custom Code
The code runs without errors but that where clause is never executed into the server.
Please Help.
Thanks in advance, AR
|
|
|
|