Im having an issue with users entering pound signs into values that are going into query string and messing up the url.
textbox value: #beta
Then when they press a button to redirect to a new page they get a 404 error.
Here is the code.
Response.Redirect(Rainbow.HttpUrlBuilder.BuildUrlByPath("Rating/Edit Contract/Change Contract","&spot=y" + "&cust=" + txtCustomer.Text + "&div=" + txtDivision.Text));
The offending code there is the &cust variable. If a user enters a # in front of the value it causes a 404 error.
On the page im redirecting to im using the variable as such.
if (Request.QueryString["cust"] != null)
txtCustomer.Text = Request.QueryString["cust"];
So im wondering if there is a way for me to handle special chars like * or # in the query string.