Unable to replace " code with another charcter

Hi All,
I amdeveloping asp.Net application using VB.net in 2003 version.
I have written a code is as follows:


If data.IndexOfAny(",".ToCharArray()) > 0 Then
                tempdata = data.Replace(",", "`^")
                data = tempdata
            End If
            If data.IndexOfAny("""".ToCharArray()) > 0 Then
                tempdata = data.Replace("""", "`$*")
            End If

my data contain
““1 of 3” images spec’d for this Photo number Added “A,B,C” to image numbers”
I want to replace " with `$*. But unable to do that.
Even If data.IndexOfAny(“”“”.ToCharArray()) > 0 Then the code never enter into this block where data contains ".

Is there any idea how to replace " codes with `$*.
Please help me.

Thanks.
I have solved it.
But any one knows if XML contain & character in data like


<COL>
        <DATA>&quot;1 of 3&quot; [B]&[/B] images spec</DATA>
      </COL>

Now Dim doc As XPathDocument = New XPathDocument(Server.MapPath(“~/Uploaded_File/” + sessionData + “.xml”))
gives exception.

can anyone help me…

Put an error handler around the statement and see what you get. Also, find out the value of “sessionData” by debugging, before you pass it to XPathDocument…