binding profile properties in Gridview ??

G

Guest

i have an Gridview bound to a SQL server table, and I want to show user
profile properties in a collumn, the codes are like below:
<Columns>
<asp:TemplateField HeaderText="Column1"
SortExpression="Column1">
<ItemTemplate>
<asp:Label ID="Label1" runat="server"
Text='<%# Eval(Profile.getProfile("ddd").toString()) %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:Label ID="Label1" runat="server"
Text='<%# Eval("Column1") %>'></asp:Label>
</EditItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="userName"
HeaderText="userName" SortExpression="userName" />
</Columns>

i got the err message :'System.Data.DataRowView' does not contain a property
with the name 'ProfileCommon'
how can i do ??
Regards!
 
B

Brock Allen

Profile.getProfile("ddd") loads a Profile for the user "ddd" from the database.
I suspect that's not what you want. Were you looking for Profile.GetPropertyValue?
 

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

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,038
Latest member
OrderProperKetocapsules

Latest Threads

Top