Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > passing # in hyperlink field in gridview

Reply
Thread Tools

passing # in hyperlink field in gridview

 
 
arkgroup
Guest
Posts: n/a
 
      01-04-2007
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gridview row index of HyperLink field - how to? Bogdan ASP .Net 2 07-20-2009 01:05 PM
Retrieve information from Hyperlink and Button field on a GridView =?Utf-8?B?UnV5IENhc3RlbGxp?= ASP .Net 0 10-18-2006 05:44 PM
GridView Hyperlink Field Append URL? barkster ASP .Net 1 10-12-2006 01:02 AM
databound and hyperlink field needed in gridview Carlos ASP .Net 1 06-08-2006 04:17 AM
Passing a variable to a new page's form field via hyperlink Newbie ASP General 1 07-07-2003 04:56 PM



Advertisments