Advertisement

02.17.2007 at 05:53PM PST, ID: 22396744
[x]
Attachment Details

DataNavigateUrlFields not recognized as a public property - asp.net datagrid control?

Asked by cbruno33 in Programming for ASP.NET, Microsoft Visual Basic.Net, .Net Editors & IDEs

Tags: datanavigateurlfields, public

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="resId,propertyId,propertyUnitId"
        DataNavigateUrlFormatString="prop_resProfile.aspx?resId={0}&propertyId={1}&propertyUnitId={2}"/>          
======================

However, I am receiving a parse error message as follows:

Type 'System.Web.UI.WebControls.HyperLinkColumn' 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,
CBrunoStart Free Trial
[+][-]02.17.2007 at 07:12PM PST, ID: 18557402

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Programming for ASP.NET, Microsoft Visual Basic.Net, .Net Editors & IDEs
Tags: datanavigateurlfields, public
Sign Up Now!
Solution Provided By: sansoftura
Participating Experts: 1
Solution Grade: A
 
 
[+][-]02.18.2007 at 07:14AM PST, ID: 18558619

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.18.2007 at 07:15AM PST, ID: 18558623

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32