J
Jeff
Hey
asp.net 2.0
I have this GridView in my web page. My problem is that it get populated
with all the fields of the MembershipUser class. I thought only UserName
would be displayed, but it displays all fields
<asp:GridView ID="gvwOnline" runat="server">
<Columns>
<asp:ButtonField DataTextField="UserName" />
</Columns>
<EmptyDataTemplate>No users are online</EmptyDataTemplate>
</asp:GridView>
MembershipUserCollection onlineUsers = Membership.GetAllUsers();
gvwOnline.DataSource = onlineUsers;
gvwOnline.DataBind();
Any suggestions?
asp.net 2.0
I have this GridView in my web page. My problem is that it get populated
with all the fields of the MembershipUser class. I thought only UserName
would be displayed, but it displays all fields
<asp:GridView ID="gvwOnline" runat="server">
<Columns>
<asp:ButtonField DataTextField="UserName" />
</Columns>
<EmptyDataTemplate>No users are online</EmptyDataTemplate>
</asp:GridView>
MembershipUserCollection onlineUsers = Membership.GetAllUsers();
gvwOnline.DataSource = onlineUsers;
gvwOnline.DataBind();
Any suggestions?