DataRow[] and Select(filter with a like clause) question

Discussion in 'ASP .Net' started by Ron Vecchi, Jul 27, 2003.

  1. Ron Vecchi

    Ron Vecchi Guest

    I am using the Select method on a DataTable to return a DataRow[]
    filter = (width LIKE '%width="[1-9][0-9]%')

    I am getting an exception saying my filter is invalid
    I narrowed it down to the part that reads [1-9][0-9]

    if I eliminate this part it works.
    Is there a way to accomplish what I'm tring to do?


    Thanks,

    Ron Vecchi
    Ron Vecchi, Jul 27, 2003
    #1
    1. Advertising

  2. Ron Vecchi

    Ron Vecchi Guest

    Heres my filter again, I gave you the Sql version without the escaped ".
    Just to clarify

    filter = width LIKE '%width=\"[1-9][0-9]%'



    "Ron Vecchi" <> wrote in message
    news:ei%23CC%...
    > I am using the Select method on a DataTable to return a DataRow[]
    > filter = (width LIKE '%width="[1-9][0-9]%')
    >
    > I am getting an exception saying my filter is invalid
    > I narrowed it down to the part that reads [1-9][0-9]
    >
    > if I eliminate this part it works.
    > Is there a way to accomplish what I'm tring to do?
    >
    >
    > Thanks,
    >
    > Ron Vecchi
    >
    >
    Ron Vecchi, Jul 27, 2003
    #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. Ron Vecchi
    Replies:
    0
    Views:
    390
    Ron Vecchi
    Jul 30, 2003
  2. Ron Vecchi
    Replies:
    0
    Views:
    414
    Ron Vecchi
    Jul 31, 2003
  3. =?Utf-8?B?RGFiYmxlcg==?=
    Replies:
    6
    Views:
    13,358
    =?Utf-8?B?UGhpbGxpcCBXaWxsaWFtcw==?=
    Apr 4, 2006
  4. Tim Jowers
    Replies:
    1
    Views:
    728
    Tim Jowers
    Apr 15, 2004
  5. rbrowning1958
    Replies:
    4
    Views:
    465
    rbrowning1958
    Mar 19, 2008
Loading...

Share This Page