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?
-Brock
DevelopMentor
http://staff.develop.com/ballen
> 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!