Question: I have the following page querystring:

```
 register.aspx?id="jSmith"

```

I have the following code to retrieve the value of ID

```
    string qString = string.IsNullOrEmpty(Request.QueryString["id"]) ? string.Empty : HttpUtility.UrlDecode(Request.QueryString["id"]);

```

When I view the value of qString I get something like

```
    "\"jSmith\""

```

so when I do the following:

```
     if (qString == "jSmith")
     {
        ........

     }

```

it does not not execute the if condition. What do I need to do s that it does not have the quotes.

Answer: 
That is because the correct way to give the path in this case would be `register.aspx?id=jSmith`, without the quotes. If you need spaces, or other special characters, in your ID, these should be URL encoded (and will be decoded by your code), but *not* enclosed in quotes.

For example, if your id was the string `john smith`, the URL would become `register.aspx?id=john+smith`, since `+` is the URL encoding of a space.
You don't need to put quotes around values in querystring, by definition they're all strings...

Your querystring should look like : 

```
register.aspx?id=jSmith

```