Error in C# Single Quote

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?U2FpbXZw?=

    Error in C# Single Quote

    Hello.

    I have a problem about single quote search in C#.

    I have 1 table:

    ID NAME COMPANY
    1 Sayre One
    1' Sayre Two

    In search button

    if I will input 1 textbox1.text.r eplace("'","") the output is:
    ID NAME COMPANY
    1 Sayre One

    if I will input 1' in textbox1.text.r eplace("'","") the output is:
    ID NAME COMPANY
    1 Sayre One

    I want only the output is the same

    1 = 1 Sayre One
    1' = 1' Sayre Two

    Please Help Me.

    Thanks and God Bless

    --
    To be Happy is To be Yourself
  • Marc Gravell

    #2
    Re: Error in C# Single Quote

    Huh?
    if I will input 1 textbox1.text.r eplace("'","") the output is:
    .... several compiler errors
    1' = 1' Sayre Two
    Well, where did Two come from?

    You also haven't told us what the textbox has to do with the table. So:
    what are you actually trying to do? Perhaps try re-phrasing it?

    Marc

    Comment

    Working...