Getting Profile info for different users in a GridView

J

Jeff

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 BoundField containing username. I don't know if
I can access that boundfield from the method below or use some other tricks
to get the username.

The reason I ask is that I have some custom fields I need access to by
creating an instance of the ProfileCommon object for that user. This is the
custom fields:

<properties>
<add name="Sykkel" type="System.String"/>
</properties>

protected void gvwUsers_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
ProfileCommon userProfile = Profile.GetProfile(username);

}
}

any suggestions?
 

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,968
Messages
2,570,153
Members
46,699
Latest member
AnneRosen

Latest Threads

Top