SQLDataSource FilterExpression reset question

Discussion in 'ASP .Net' started by fniles, Mar 29, 2009.

  1. fniles

    fniles Guest

    I am using VS 2005 and sqldatasource.
    Once I set the FilterExpression of the sqldatasource, how can I set it back
    to the original sqldatasource without the FilterExpression ?
    Say, I have a sqldatasource "select col1,col2 from tbl1"
    When a filter button is hit, say I set sqldatasource.FilterExpression =
    "col1 = 5"
    After that if I want to go back to "select col1,col2 from tbl1", how can I
    do that ?
    Thank you.
     
    fniles, Mar 29, 2009
    #1
    1. Advertising

  2. On Mar 29, 8:03 pm, "fniles" <> wrote:
    > I am using VS 2005 and sqldatasource.
    > Once I set the FilterExpression of the sqldatasource, how can I set it back
    > to the original sqldatasource without the FilterExpression ?
    > Say, I have a sqldatasource "select col1,col2 from tbl1"
    > When a filter button is hit, say I set sqldatasource.FilterExpression =
    > "col1 = 5"
    > After that if I want to go back to "select col1,col2 from tbl1", how can I
    > do that ?
    > Thank you.


    I think it must be set to Nothing
     
    Alexey Smirnov, Mar 30, 2009
    #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. Replies:
    1
    Views:
    7,576
    Markus
    Aug 25, 2005
  2. Henry Habermacher [MVP Access]

    GridView - Changing FilterExpression of SQLDataSource and Paging

    Henry Habermacher [MVP Access], Jan 20, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    11,243
    kmarchiony
    Jul 31, 2007
  3. Replies:
    0
    Views:
    3,126
  4. fniles
    Replies:
    0
    Views:
    592
    fniles
    Mar 25, 2009
  5. fniles
    Replies:
    0
    Views:
    480
    fniles
    Mar 29, 2009
Loading...

Share This Page