473,396 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

binding profile properties in Gridview ??

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!
Nov 19 '05 #1
1 2226
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!


Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Shimon Sim | last post by:
Hi I am working on application that need to hold custom user information - Last and first name, email, some other domain related information. I used to create Base class for all my pages. The base...
0
by: Giorgio | last post by:
It seems that the ASP.NET Microsoft team didn't think about this!! The profilemanager class has the following methods: - DeleteInactiveProfiles. Enables you to delete all profiles older...
0
by: a | last post by:
Q. Unable to get a Profile custom (object) collection to bind to GridView,etc (IList objects)? This is my first custom object so I may be doing something rather simple, wrong, or it may be...
6
by: Jeff | last post by:
Hey (and thank you for reading my post) In visual web developer 2005 express edition I've created a simple website project.. At this website I want users who register to be able to upload a...
4
by: Mike | last post by:
I'm having trouble getting a gridview to bind. I probably missing something completely obvious and would appreciate any help on offer. I'm passing parameters via querystring, and have created a...
2
by: Greg | last post by:
Hello, I am trying to bind a GridView to a custom object I have created. First, here is what I'm trying to do: I have a wizard for adding/editing Users. When the wizard begins, a User...
8
by: =?Utf-8?B?QXNo?= | last post by:
Hi, I have an object, for example User. User contains various properties which i have been able to bind to successfully using wizards and the form view. However if the class User has a property...
2
by: Bart | last post by:
Hallo, i defined some profile properties (category and department), for our membership users.. I also made a list of all the membership users in a gridview. This list shows only the username...
1
by: Jeff | last post by:
hi asp.net 2.0 I have a webpage with a gridview. Each row in the GridView contain info about a user (Membershipuser, standard asp.net 2.0 membership). One of the columns in the GridView is a...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.