Looking to pass multiple parameters into hyperlink column in datagrid. I've read everywhere to use the "DataNavigateUrlFields" property to specify multiple field values as I'm doing below:
======================
<asp:HyperLinkColumn
HeaderText="resId"
Visible="True"
DataTextField="resId"
DataNavigateUrlFields="res
Id,propert
yId,proper
tyUnitId"
DataNavigateUrlFormatStrin
g="prop_re
sProfile.a
spx?resId=
{0}&proper
tyId={1}&p
ropertyUni
tId={2}"/>
======================
However, I am receiving a parse error message as follows:
Type 'System.Web.UI.WebControls
.HyperLink
Column' does not have a public property named 'DataNavigateUrlFields'.
I am running asp.net 2.0 so I do not understand what the problem is. The datagrid on my page works if I specify the property as "DataNavigateUrlField" (singular), but with this property I can only specify one parameter. I am relatively new to learning .net and wondering if I need to somehow update my server controls? Anyone have any ideas?
Much appreciated,
CBruno
Start Free Trial