passing # in hyperlink field in gridview

A

arkgroup

I am using VS 2005 and gridview hyperlink field. It point to the same
page.
Here is what I have :

<asp:HyperLinkField
DataNavigateUrlFields="RefrigeratorName,RefrigeratorType,RefrigeratorID,RefrigeratorTypeID"
DataNavigateUrlFormatString="MyUnit.aspx?Tab=2&amp;RefrigeratorName={0}&amp;RefrigeratorType={1}&amp;RefrigeratorID={2}&amp;RefrigeratorTypeID={3}"

Everything works fine, unless I have "#" or "&" characters in
RefrigeratorName field.
In case like this RefrigeratorName= "refrig # 3",
Request.QueryString["RefrigeratorName"].ToString() return only
"refrig" and all next Request.QueryString return null. I can see
right text when I move mouse on the link, but request.quesrystring
returns wrong. T try to change HtmlEncode on this filed, but it did no
seems tot help

Any help?

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top