Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Canceling ObjectDataSource selecting event

Thread Tools

Canceling ObjectDataSource selecting event

Posts: n/a
I want to evaluate parameters passed by ListView to ObjectDataSource and
cancel this event in a case of error.

If I set Cancel property of the ObjectDataSourceSelectingEventArgs to true,
my ListView is completly wiped out - it will not be generated at all. Other
controls on a web page are displayed just fine.

Why is this happening?

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Selecting New Row in Gridview with an ObjectDataSource Jay Pondy ASP .Net Web Controls 5 04-05-2007 02:26 AM
Event canceling... Javascript 1 05-22-2006 06:01 AM
ObjectDataSource method as another ObjectDataSource David Thielen ASP .Net Web Controls 3 03-23-2006 01:50 AM
Canceling Subsequent events from page_load DazedAndConfused ASP .Net 4 09-23-2005 01:10 AM
Canceling Page.Load event AT ASP .Net 1 08-19-2005 07:47 AM