![]() |
passing # in hyperlink field in gridview
I am using VS 2005 and gridview hyperlink field. It point to the same
page. Here is what I have : <asp:HyperLinkField DataNavigateUrlFields="RefrigeratorName,Refrigerat orType,RefrigeratorID,RefrigeratorTypeID" DataNavigateUrlFormatString="MyUnit.aspx?Tab=2& ;RefrigeratorName={0}&RefrigeratorType={1}& ;RefrigeratorID={2}&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 |
| All times are GMT. The time now is 07:03 AM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.