newbie: ButtonField problem

J

Jeff

hey

asp.net 2.0

I'm trying to specify the "Street" property to the DataTextField of a
ButtonField, but my code below crashes saying there are no property names
"Street" in the profile. Important: The "Street" property is in a sub group.

Below are 2 trys on using ButtonField, they don't work.. any suggestions on
how to specify the "Street" property would be greatly appreaciated

Any suggestions on how to fix this is greatly welcome

<asp:ButtonField HeaderText="Country" DataTextField="Address.Street" />
or
<asp:ButtonField HeaderText="Country" DataTextField="Street" />

<profile enabled="true">
<properties>
<add name="FirstName" type="string"/>
<add name="LastName" type="string"/>
<add name="Gender" type="string"/>
<group name="Address">
<add name="Street" type="string"/>
</group>
</properties>
</profile>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,216
Latest member
topweb3twitterchannels

Latest Threads

Top