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. Advertisements

  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. Advertisements

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. =?ISO-8859-1?Q?Thomas_Gagn=E9?=

    Why do static and non-static method names collide?

    =?ISO-8859-1?Q?Thomas_Gagn=E9?=, Jul 2, 2003, in forum: Java
    Replies:
    12
    Views:
    6,417
    cgbusch
    Jul 5, 2003
  2. Guest
    Replies:
    5
    Views:
    832
  3. Ville Vainio
    Replies:
    11
    Views:
    855
    Hamish Lawson
    Aug 10, 2004
  4. John Ersatznom
    Replies:
    3
    Views:
    464
    John Ersatznom
    Jan 8, 2007
  5. Nil

    Static Variable vs View State

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

    Static variable vs View State

    Nil, Apr 9, 2008, in forum: ASP General
    Replies:
    2
    Views:
    272
    Anthony Jones
    Apr 9, 2008
  8. Arun Kumar
    Replies:
    3
    Views:
    418
    Arun Kumar
    Jan 7, 2011
Loading...