Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Datagrid Control (http://www.velocityreviews.com/forums/f60-asp-net-datagrid-control.html)
-   -   passing # in hyperlink field in gridview (http://www.velocityreviews.com/forums/t763095-passing-in-hyperlink-field-in-gridview.html)

arkgroup 01-04-2007 03:09 PM

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&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



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.