how to ignore postback data in particular situations

Discussion in 'ASP .Net Building Controls' started by tiago.private@gmail.com, Nov 15, 2008.

  1. Guest

    Hi everybody,

    Imagine the following scenario:
    One System.Web.UI.UserControl (UC1) with 2 drop downs and one button
    "Filter"
    One Webform with (UC1) and a GridView, basically the UC1 provides the
    options to the user to restrict (filter) the grid.

    The user changes the drop downs and then uses the Filter button to
    filter data (grid) that is the correct behavior.
    Now imagine that the user plays with the dropdowns, but he doesn't
    want to apply the filter and after he chooses to walk to a different
    page, that action will cause a postback of data, and the dropdown
    selections will be effective applied due to be changed by a previous
    use in the interface.

    The question is how can i avoid the postback (or ignore it) when
    postback is not fired due to the action of the "Fire" button ?

    I think the solution probably need to be client side, because it's not
    a problem of the grid filtering data based in the options, but also a
    visual consistency, when you do a postback and the page is rendered to
    the client the drop downs should reflect the filter applied.

    Any ideas, thoughts ....

    Thanks all for reading.

    Regards,
    TP
    , Nov 15, 2008
    #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. =?Utf-8?B?RGFuaWVsIFdhbHplbmJhY2g=?=

    How to handle save situations in asp.net?

    =?Utf-8?B?RGFuaWVsIFdhbHplbmJhY2g=?=, Jul 21, 2004, in forum: ASP .Net
    Replies:
    12
    Views:
    950
    Steven Cheng[MSFT]
    Jul 27, 2004
  2. DigHazuse

    Validation on all PostBack situations

    DigHazuse, Nov 29, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    358
    DigHazuse
    Nov 29, 2005
  3. max
    Replies:
    11
    Views:
    599
    freemont
    Nov 11, 2006
  4. George2

    bad_alloc in these situations?

    George2, Feb 28, 2008, in forum: C Programming
    Replies:
    0
    Views:
    354
    George2
    Feb 28, 2008
  5. rana
    Replies:
    1
    Views:
    802
Loading...

Share This Page