Canceling ObjectDataSource selecting event

Discussion in 'ASP .Net' started by Lubomir, Feb 5, 2010.

  1. Lubomir

    Lubomir Guest

    Hi,
    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?

    Thanks,
    Lubomir
     
    Lubomir, Feb 5, 2010
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. AT

    Canceling Page.Load event

    AT, Aug 18, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    409
    Rick Strahl [MVP]
    Aug 19, 2005
  2. DazedAndConfused

    Canceling Subsequent events from page_load

    DazedAndConfused, Sep 22, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    532
    DazedAndConfused
    Sep 23, 2005
  3. David Thielen

    ObjectDataSource method as another ObjectDataSource

    David Thielen, Mar 21, 2006, in forum: ASP .Net Web Controls
    Replies:
    3
    Views:
    248
    Steven Cheng[MSFT]
    Mar 23, 2006
  4. Jay Pondy

    Selecting New Row in Gridview with an ObjectDataSource

    Jay Pondy, Apr 2, 2007, in forum: ASP .Net Web Controls
    Replies:
    5
    Views:
    392
    Steven Cheng[MSFT]
    Apr 5, 2007
  5. Event canceling...

    , May 22, 2006, in forum: Javascript
    Replies:
    1
    Views:
    110
    Randy Webb
    May 22, 2006
Loading...

Share This Page