Maybe a static method and/or View State?

Discussion in 'ASP .Net' started by CK, May 23, 2006.

  1. CK

    CK Guest

    Hi All,

    I am making a filter for a web page datagrid. I have the inner workings of
    the filter doing what I need it to do. What I am trying to accomplish now is
    to somehow retain the state of the filter between postbacks. I have two
    images of a filter icon button. One is pressed and the other de-pressed. If
    the filter is active, I would like some method to return true? otherwise
    false. Then bind the image src to that property somehow. Does that make
    sense? When the user clicks the image, I would set the IsFilter, then
    postback, then evaluate IsFilter, then set the image source to the proper
    image. Any ideas on how to approach this? All feedback is appreciated.

    Thanks In Advance,
    ~CK
    CK, May 23, 2006
    #1
    1. Advertising

  2. you can use hidden input control to preserve imageUrl or any other
    state

    hope this helps
    Galin Iliev[MCSD.NET]
    www.galcho.com
    Galcho[MCSD.NET], May 23, 2006
    #2
    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. Guest
    Replies:
    5
    Views:
    603
  2. Ville Vainio
    Replies:
    11
    Views:
    595
    Hamish Lawson
    Aug 10, 2004
  3. John Ersatznom
    Replies:
    3
    Views:
    338
    John Ersatznom
    Jan 8, 2007
  4. Nil

    Static Variable vs View State

    Nil, Apr 9, 2008, in forum: ASP .Net
    Replies:
    3
    Views:
    1,062
    Peter Bromberg [C# MVP]
    Apr 9, 2008
  5. Parthiv Joshi
    Replies:
    1
    Views:
    646
    Samuel L Matzen
    Jul 6, 2004
Loading...

Share This Page